This function returns a table with several criteria for model comparison.
Usage
model_selection(
...,
criteria = c("npar", "LL", "AIC", "BIC"),
add_form = FALSE
)
Arguments
- ...
One or more objects of class
RprobitB_fit
.- criteria
A vector of one or more of the following characters:
"npar"
for the number of model parameters (seenpar
),"LL"
for the log-likelihood value (seelogLik
),"AIC"
for the AIC value (seeAIC
),"BIC"
for the BIC value (seeBIC
),"WAIC"
for the WAIC value (also shows its standard errorsd(WAIC)
and the numberpWAIC
of effective model parameters, seeWAIC
),"MMLL"
for the marginal model log-likelihood,"BF"
for the Bayes factor,"pred_acc"
for the prediction accuracy (seepred_acc
).
- add_form
Set to
TRUE
to add the model formulas.