View source: R/fit_model_BinCont_copula.R
twostep_BinCont | R Documentation |
The twostep_BinCont()
function fits the copula (sub)model fir a continuous
surrogate and binary 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_BinCont(
X,
Y,
copula_family,
marginal_surrogate,
marginal_surrogate_estimator = NULL,
method = "BFGS"
)
X |
(numeric) Continuous surrogate variable |
Y |
(integer) Binary true endpoint variable ( |
copula_family |
Copula family, one of the following:
|
marginal_surrogate |
Marginal distribution for the surrogate. For all
available options, see |
marginal_surrogate_estimator |
Not yet implemented |
method |
Optimization algorithm for maximizing the objective function.
For all options, see |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.