binomial error and a glm model with a poisson error.rsadd(formula, data=parent.frame(), ratetable = survexp.us, int, na.action, method, init,control,...)~ operator, and
the terms on the right. The terms consist of predictor variables separated by
the + operator, along with a ratetable term. The ratetableformula.ratetable object, such as survexp.us.max(int) are censored. If missing, the intervals are set to be one options()$na.action.glm.bin or glm.poi for a glm model and max.lik for the maximum likelihood model (default).glm.control for details.glm.control.rsadd. In the case of method="glm.bin" and method="glm.poi" the class also
inherits from glm which inherits from the class lm.
Objects of this class have methods for the functions print and summary.
An object of class rsadd is a list containing at least the following components:rstrans,
rsmuldata(slopop)
data(rdata)
rsadd(Surv(time,cens)~sex+as.factor(agegr)+ratetable(age=age*365.24,sex=sex,year=year),ratetable=slopop,data=rdata,int=5)Run the code above in your browser using DataLab