Learn R Programming

JPSurv (version 1.0.1)

CoxModel_Year: Fitting a proportional hazard relative survival model with year as a covariate

Description

Fitting a proportional hazard relative survival model with year as a covariate

Usage

CoxModel_Year(formula, data, subset, ...)

Arguments

formula
an object of class "formula": a symbolic description of the model to be fitted. If the input data is from SEER*Stat, the formula can be ~Year. Otherwise, the full formula should be specified as: ~Alive_at_Start + Died + Lost_to_Followup + Expected_Survival_Interval + Interval + Year
data
an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula).
subset
an optional vector specifying a subset of observations to be used in the fitting process.
...
additional arguments to be passed to the low level regression fitting functions.

Value

A list with attributes:
coefficients
a named vector of coefficients and standard errors
converged
convergence status
predicted
the fitted relative survival rates
xbeta
the linear predictor
ll
log likelihood
aic
AIC
bic
BIC