Usage
rsmul(formula, data, ratetable = survexp.us, int,na.action,init,method,control,...)
Arguments
formula
a formula object, with the response on the left of a ~
operator, and
the terms on the right. The terms consist of predictor variables separated by
the +
operator, along with a ratetable
term. The ratetable
data
a data.frame in which to interpret the variables named in
the formula
.
ratetable
a table of event rates, such as survexp.us
.
int
the number of follow-up years used for calculating survival(the rest is censored). If missing, it is set the
the maximum observed follow-up time.
na.action
a missing-data filter function, applied to the model.frame,
after any subset argument has been used. Default is
options()$na.action
.
init
vector of initial values of the iteration. Default initial
value is zero for all variables.
method
the default method mul
assumes hazard to be constant on yearly intervals. Method mul1
uses the ratetable
to determine the time points when hazard changes. The mul1
method is therefore more accurate, but at the same
control
a list of parameters for controlling the fitting process.
See the documentation for coxph.control
for details.
...
Other arguments will be passed to coxph.control
.