Calculate the variance estimates using the sandwich formula based on the ES algorithm.
varest(Time, Status, X, Z, id, gamma, beta, kappa, gphi, gcor, bphi, bcor,
Lambda, w, model)
right censored data which is the follow up time.
the censoring indicator, normally 0 = event of interest happens, and 0 = censoring.
a matrix of covariates corresponding to the latency part.
a matrix of covariates corresponding to the incidence part.
a vector which identifies the clusters. The length of id
should be the same as the number of observations.
the estimates for the incidence part.
the estimates for the latency part.
the estimate of the shape parameter in the Weibull baseline hazard function when model = "para"
.
the estimate of the scale parameter \(\phi_1\) in the GEE for the incidence part.
the estimate of the correlation parameter \(\rho_1\) in the GEE for the incidence part.
the estimate of the scale parameter \(\phi_2\) in the GEE for the latency part.
the estimate of the correlation parameter \(\rho_2\) in the GEE for the latency part.
the estimate of the cumulative baseline hazard function in the GEE for the latency part.
conditional probability of a patient remains uncured.
specifies your model, it can be para
which represents the parametric PHMC model with two-parameter Weibull baseline survival function, or semi
which represents the semiparametric PHMC model.