This function computes the variance of the estimates computed by the 'estimate.cmprsk.R' function.
variance.cmprsk(
parhatc,
gammaest,
data,
admin,
conf,
inst,
cf,
eoi.indicator.names,
Zbin,
use.chol,
n.trans,
totparl
)
Variance estimates of the provided vector of estimated parameters.
Vector of estimated parameters, computed in the first part of
estimate.cmprsk.R
.
Vector of estimated parameters in the regression model for the control function.
A data frame.
Boolean value indicating whether the data contains administrative censoring.
Boolean value indicating whether the data contains confounding
and hence indicating the presence of z
and, possibly, w
.
Variable encoding which approach should be used for dealing with
the confounding. inst = "cf"
indicates that the control function
approach should be used. inst = "W"
indicates that the instrumental
variable should be used 'as is'. inst = "None"
indicates that Z will
be treated as an exogenous covariate. Finally, when inst = "oracle"
,
this function will access the argument realV
and use it as the values
for the control function. Default is inst = "cf"
.
The control function used to estimate the second step.
Vector of names of the censoring indicator columns
pertaining to events of interest. Events of interest will be modeled allowing
dependence between them, whereas all censoring events (corresponding to
indicator columns not listed in eoi.indicator.names
) will be treated
as independent of every other event. If eoi.indicator.names == NULL
,
all events will be modeled dependently.
Indicator value indicating whether (Zbin = TRUE
) or not
Zbin = FALSE
the endogenous covariate is binary. Default is
Zbin = NULL
, corresponding to the case when conf == FALSE
.
Boolean value indicating whether the cholesky decomposition was used in estimating the covariance matrix.
Number of competing risks in the model (and hence, number of transformation models).
Total number of covariate effects (including intercepts) in all of the transformation models combined.