Baselinehazard_IMP: Baselinehazard_IMP

Description Usage Arguments Value

View source: R/EstimateCoxBaselines.R

Description

The function Baselinehazard_IMP is used to estimate the baseline hazard functions within the MCEM algorithm under COX baseline hazards

Usage

1
2
Baselinehazard_IMP(datWIDE, CovImp, GImp, YRImp, deltaRImp, beta, alpha,
  TransCov, ASSUME)

Arguments

datWIDE

A data frame with the following columns:

  • Y_R, the recurrence event/censoring time

  • delta_R, the recurrence event/censoring indicator

  • Y_D, the death event/censoring time

  • delta_D, the death event/censoring indicator

  • G, the cure status variable. This takes value 1 for known non-cured, 0 for "known" cured and NA for unknown cure status

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:

  • 'SameHazard': Lambda_14(t) = Lambda_24(t)

  • 'AllSeparate': No restrictions on Lambda_14(t) and Lambda_24(t)

  • 'ProportionalHazard': Lambda_14(t) = Lambda_24(t) exp(Beta0)

  • 'SameBaseHaz': Lambda^0_14(t) = Lambda^0_24(t), No restrictions on beta_14 and beta_24

Value

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.


lbeesleyBIOSTAT/MultiCure documentation built on April 18, 2018, 11:08 p.m.