Usage
## S3 method for class 'flexsurvreg':
summary(object, newdata=NULL, X=NULL,
type="survival", fn=NULL, t=NULL,
start=0, ci=TRUE, B=1000, cl=0.95,...)
Arguments
newdata
Data frame containing covariate values to produce fitted values for.
Or a list that can be coerced to such a data frame. There must be a
column for every covariate in the model formula, and one row for
every combination of covariates the f
X
Alternative way of defining covariate values to produce
fitted values for. Since version 0.4, newdata
is an
easier way that doesn't require the user to create factor contrasts,
but X
has been kept for backwards co
type
"survival"
for survival probabilities.
"cumhaz"
for cumulative hazards.
"hazard"
for hazards.
Ignored if "fn"
is specified.
fn
Custom function of the parameters to summarise against time. This
has optional first two arguments t
representing time, and
start
representing left-truncation points, and any remaining arguments
must be param
t
Times to calculate fitted values for. By default, these are the
sorted unique observation (including censoring) times in the
data - for left-truncated datasets these are the "stop" times.
start
Optional left-truncation time or times. The returned
survival, hazard or cumulative hazard will be conditioned on survival
up to this time.
A vector of the same length as t
can be supplied to allow
different truncation times fo
ci
Set to FALSE
to omit confidence intervals.
B
Number of simulations from the normal asymptotic distribution
of the estimates used to calculate confidence intervals. Decrease
for greater speed at the expense of accuracy, or set
B=0
to turn off calculation of CIs.
cl
Width of symmetric confidence intervals, relative to 1.
...
Further arguments passed to or from other methods.
Currently unused.