coxmcem( fixed,
random,
data,
df,
n.groups,
max.iter=10,
min.sample=100,
mc.step=2,
est.delta=5/100,
echo = TRUE,
init.coef,
init.vcov
)
coxphcoxme, with explicit removal of intercept term if not to be included, i.e. ~-1coef and vcov which give the variance for the fixed effects and random effect variances (diagonal components only), respectivelyinit.coef and init.vcov are not specified, starting values for the regression effects and frailty variance are set to the values in a coxme or phmm is used to set initial values, with coxme tried first. The proposal density used for the cluster effects at each E step is a multivariate T distribution. Independent samples are taken with location and scale set to the mean and Sigma of coxmcem.initialize. The mean is determined from the frailties of a PPL-based estimation implemented by coxme. If this fails then the MCEM method of phmm is used. The value for scale is a diagonal matrix with entries that are the reciprocal of the effective sample size for each frailty which is the total number of observations divided by the total number of frailties in the model.
Weights are based on the ratio of the penalized partial likelihood and the proposal density times an upper bound. The upper bound is the maximum of the PPL to the proposal among the E-step samples. These weights are then normalized so as to sum to 1.
Convergence is declared reached if the maximum relative change has been less than est.delta for three consecutive iterations.
The sample size changes with the result of the CV check of the relative change in the estimates, comparing the most recent three consecuritve differences to the previous three consecutive differences. If the current iteration CV is greater than the last the sample size increases by $N+\frac{N}{mc.step}$.
coxme, coxph, phmmset.seed(3232)
data(cancer.rats)
fit.rats <-
coxmcem(Surv(time,event)~rx,~(1|litter),n.groups=50,data=cancer.rats,
max.iter=10,
min.sample=300,
mc.step=2,
est.delta=.01,
df=50
)Run the code above in your browser using DataLab