The twostep_SurvSurv()
function fits the copula (sub)model for a
time-to-event surrogate and true endpoint with a two-step estimator. In the
first step, the marginal distribution parameters are estimated through
maximum likelihood. In the second step, the copula parameter is estimate
while holding the marginal distribution parameters fixed.
twostep_SurvSurv(
X,
delta_X,
Y,
delta_Y,
copula_family,
n_knots,
method = "BFGS"
)
A list with three elements:
ml_fit: object of class maxLik::maxLik
that contains the estimated copula
model.
marginal_S_dist: object of class fitdistrplus::fitdist
that represents the
marginal surrogate distribution.
copula_family: string that indicates the copula family
(numeric) Possibly right-censored time-to-surrogate event
(integer) Surrogate event indicator:
1L
if surrogate event ocurred.
0L
if censored.
(numeric) Possibly right-censored time-to-true endpoint event
(integer) True endpoint event indicator:
1L
if true endpoint event ocurred.
0L
if censored.
Copula family, one of the following:
"clayton"
"frank"
"gumbel"
"gaussian"
The parameterization of the respective copula families can be found in the
help files of the dedicated functions named copula_loglik_copula_scale()
.
Number of internal knots for the Royston-Parmar survival model.
Optimization algorithm for maximizing the objective function.
For all options, see ?maxLik::maxLik
. Defaults to "BFGRS"
.