Description Usage Arguments Value
View source: R/EstimateCoxBaselines.R
The function Baselinehazard_IMP is used to estimate the baseline hazard functions within the MCEM algorithm under COX baseline hazards
1 2 | Baselinehazard_IMP(datWIDE, CovImp, GImp, YRImp, deltaRImp, beta, alpha,
TransCov, ASSUME)
|
datWIDE |
A data frame with the following columns:
|
CovImp |
A list with IMPNUM elements containing the imputations of Cov output from MultiCure |
GImp |
A matrix with IMPNUM elements containing the imputations of G output from MultiCure |
YRImp |
A matrix with IMPNUM elements containing the imputations of Y_R output from MultiCure |
deltaRImp |
A matrix with IMPNUM elements containing the imputations of delta_R output from MultiCure |
beta |
Current estimate of beta |
alpha |
Current estimate of alpha |
TransCov |
a list with elements: Trans13, Trans24, Trans14, Trans34, PNonCure. Each list element is a vector containing the names of the variables in Cov to be used in the model for the corresponding transition. 13 is NonCured -> Recurrence, 24 is Cured -> Death, 14 is NonCured -> Death, 34 is Recurrence -> Death. PNonCure contains the names of the covariates for the logistic regression for P(NonCure). |
ASSUME |
This variables indicates what equality assumptions we are making regarding the 24 and 14 transitions. The possible options are:
|
EST a list containing the estimates for the baseline hazard function (and cumulative baseline hazard function) for the 1->3, 2->4, 1->4, and 3->4 transitions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.