This function implements the second step likelihood function of the competing risk model defined in Willems et al. (2024+).
cr.lik(
n,
s,
Y,
admin,
cens.inds,
M,
Sigma,
beta.mat,
sigma.vct,
rho.mat,
theta.vct
)
Evaluation of the log-likelihood function
The sample size.
The number of competing risks.
The observed times.
Boolean value indicating whether or not administrative censoring should be taken into account.
matrix of censoring indicators (each row corresponds to a single observation).
Design matrix, consisting of [intercept, exo.cov, Z, cf]. Note that
cf
represents the multiple ways of 'handling' the endogenous covariate
Z, see also the documentation of 'estimate.cmprsk.R'. When there is no
confounding, M
will be [intercept, exo.cov].
The covariance matrix.
Matrix containing all of the covariate effects.
Vector of standard deviations. Should be equal to
sqrt(diag(Sigma))
.
The correlation matrix.
Vector containing the parameters of the Yeo-Johnsontrans- formations.
Willems et al. (2024+). Flexible control function approach under competing risks (in preparation).