Description Usage Arguments Value
View source: R/multivariate_models.R
Do a maximum likelihood fit of multivariate mixed cumulative probit model using the Hooke-Jeeves (hjk) algorithm. The parameter vector used in the optimization has, roughly, a mean of zero and an expectation that the best actual value is within about +/-1 of the starting value. This is accomplished by subtracting the mean of the conditionally dependent fit and dividing by the standard error of the conditionally dependent fit.
1 2 3 4 5 6 7 8 | fit_multivariate(
x,
Y,
mod_spec,
cindep_model,
save_file = NA,
hjk_control = list()
)
|
x |
The vector of independent variables |
Y |
The matrix of responses |
mod_spec |
The model specification |
cindep_model |
A list specifying the conditionally independent model (likely the output of build_cindep_model). cindep_model must contain cindep_model$th_y_bar and cindep_model$th_y_bar_scale. |
A list object containing the best-fit parameter vector (th_y), and the unconstrained best-fit parameter (th_y_bar), and the return object from the optimization (hjk_output).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.