predict and related methods for class “
1 2 3 4 5 6 7 8 9
Object of class “
Optional data for which to calculate fitted values, defaults to training data.
Quantity of interest to calculate. Default conditional hazard,
i.e. conditioned on observed survival up to time
For conditional hazard, truncate values greater than 1.
Function determining what should be done with missing values
in newdata. The default is to predict NA (
not used, for compatibility with generic function.
Calculates various types of probabilities, where “conditional” is used in
reference to conditioning on the observed survival time of a spell up to
time t, in addition to conditioning on any variables included in the
model (which is always done). Valid values for the
“conditional risk”: Pr(Cure=0|Z*gamma, T>t)
“conditional cure”: Pr(Cure=1|Z*gamma, T>t)
“hazard”: Pr(T=t|T>t, C=0, X*beta) * Pr(Cure=0|Z*gamma)
“failure”: Pr(T=t|T>t-1, C=0, X*beta) * Pr(Cure=0|Z*gamma)
“unconditional risk”: Pr(Cure=0|Z*gamma)
“unconditional cure”: Pr(Cure=1|Z*gamma)
“conditional hazard” or “response”: Pr(T=t|T>t, C=0, X*beta) * Pr(Cure=0|Z*gamma, T>t)
“conditional failure”: Pr(T=t|T>t-1, C=0, X*beta) * Pr(Cure=0|Z*gamma, T>t)
The vector Z*gamma indicates the cure/at risk equation covariate vector, while X*beta indicates the duration equation covariate vector.
Returns a data frame with 1 column corresponding to
type, in the same
order as the data frame used to estimate
forecast.spdur for producing forecasts when future
covariate values are unknown.
1 2 3 4 5 6 7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.