joinpoint.cond | R Documentation |
Fitting a joinpoint conditional relative survival model
joinpoint.cond(data, subset, start.interval, end.interval=NULL,
year="Year", interval="Interval",
number.event="Died", number.alive="Alive_at_Start",
number.loss="Lost_to_Followup",
expected.rate="Expected_Survival_Interval",
model.form=NULL, maxnum.jp=0, proj.year.num=5,
op=list(), delLastIntvl=FALSE, add.data.cols="_ALL_")
data |
Data frame containing all variables in the model. |
subset |
A logical vector of length |
start.interval |
A positive integer giving the number of intervals to condition on. |
end.interval |
A positive integer > |
year |
Column name of |
interval |
Column name of |
number.event |
Column name of |
number.alive |
Column name of |
number.loss |
Column name of |
expected.rate |
Column name of |
model.form |
an object of class "formula": a symbolic description of covariates. Example: ~-1+age+as.factor(stage) |
maxnum.jp |
The maximum number of join points allowed. The default is zero, which is equivalent to a proportional hazard relative survival model. |
proj.year.num |
The number of projection years for use in the prediction step. Default value is 5 years, with a valid range of 0 to 30 years. |
op |
List of more options. Details —
|
delLastIntvl |
an logical value indicating whether or not deleting records of last intervals of all years. The default is FALSE. |
add.data.cols |
Character vector of column names in |
The data to be included in the analysis must contain unique
year
, interval
pairs. If not, then an error will be thrown.
The subset
option can be used to ensure that there are unique pairs
of year
and interval
.
This function will set up the data based on the value of start
by
removing all rows with interval
less than or equal to start
and then call the joinpoint
function.
An object of class "joinpoint" will be returned with attributes:
coefficients |
a named vector of coefficients and standard errors |
jp |
the estimates of the join points |
converged |
convergence status |
predicted |
the fitted relative survival rates |
fullpredicted |
the full output matrix, with all year/interval combinations and projections |
xbeta |
the linear predictor |
ll |
log likelihood |
aic |
AIC |
bic |
BIC |
FitList |
a list that contains fitting results for the number of joinpoints = 0,1,...,numJPoints respectively. |
Yu, B., Huang, L., Tiwari, R. C., Feuer, E. J. and Johnson, K. A. (2009), Modeling population-based cancer survival trends by using join point models for grouped survival data. Journal of the Royal Statistical Society: Series A, 172, 405-425.
joinpoint
, joinpoint.conditional
#Load the provided SEER 18 breast cancer example data.
data("breast.example", package="JPSurv")
# Subset of observations to use
subset <- "Age_groups == '00-49' & Breast_stage == 'Localized'"
# Fit the conditional survival join point model with starting
# interval 5
fit <- joinpoint.cond(breast.example, subset, 5,
year="Year_of_diagnosis_1975",
model.form=NULL, maxnum.jp=0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.