View source: R/fit_model_OrdCont_copula.R
fit_copula_submodel_OrdCont | R Documentation |
The fit_copula_submodel_OrdCont()
function fits the copula (sub)model for a
continuous surrogate and an ordinal true endpoint with maximum likelihood.
fit_copula_submodel_OrdCont(
X,
Y,
copula_family,
marginal_Y,
start_Y,
start_copula,
method = "BFGS",
K,
names_XY = c("Surr", "True"),
twostep = FALSE,
...
)
X |
First variable (Ordinal with |
Y |
Second variable (Continuous) |
copula_family |
Copula family, one of the following:
|
marginal_Y |
List with the following five elements (in order):
|
start_Y |
Starting values for the marginal distribution paramters for |
start_copula |
Starting value for the copula parameter. |
method |
Optimization algorithm for maximizing the objective function.
For all options, see |
K |
Number of categories in |
names_XY |
Names for |
twostep |
(boolean) If |
... |
Extra argument to pass onto maxLik::maxLik |
A list with five elements:
ml_fit: object of class maxLik::maxLik
that contains the estimated copula
model.
marginal_X: list with the estimated cdf, pdf/pmf, and inverse cdf for X.
marginal_Y: list with the estimated cdf, pdf/pmf, and inverse cdf for X.
copula_family: string that indicates the copula family
data: data frame containing X
and Y
names_XY: The names (i.e., "Surr"
and "True"
) for X
and Y
ordinal_continuous_loglik()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.