formula
|
a formula object. The response variable will be a vector of follow-up times
for each subject, or a Surv object containing the survival time and an
event indicator.
The predictors consist of optional grouping variables
separated by + operators (exactly as in survfit ), time-dependent grouping
variables such as age (specified with tcut ), and optionally a
ratetable() term. This latter matches each subject to his/her expected
cohort.
|
data,
|
as in other modeling routines.
Weights are case weights.
|
ratetable
|
a table of event rates, such as survexp.uswhite.
|
scale
|
a scaling for the results. As most rate tables are in units/day, the
default value of 365.25 causes the output to be reported in years.
|
model,
|
flags to control what is returned. If any of these is true, then the
model frame, the model matrix, and/or the vector of response times will be
returned as components of the final result, with the same names as the
flag arguments.
|
pyears
|
an array containing the person-years of exposure. (Or other units, depending
on the rate table and the scale).
|
n
|
an array containing the number of subjects who contribute time to each cell
of the pyears array.
|
event
|
an array containing the observed number of events. This will be present only
if the resonse variable is a Surv object.
|
expeced
|
an array containing the expected number of events. This will be present only
if there was a ratetable term.
|
offtable
|
the number of person-years of exposure in the cohort that was not part of
any cell in the pyears array. This is often useful as an error check; if
there is a mismatch of units between two variables, nearly all the person
years may be off table.
|
call
|
an image of the call to the function.
|
na.action
|
the na.action attribute contributed by an na.action routine, if any.
|