Skip to contents

This function returns a table with several criteria for model comparison.

Usage

model_selection(
  ...,
  criteria = c("npar", "LL", "AIC", "BIC"),
  add_form = FALSE
)

# S3 method for class 'RprobitB_model_selection'
print(x, digits = 2, ...)

Arguments

...

One or more objects of class RprobitB_fit.

criteria

[character()]
One or more of the following:

  • "npar" for the number of model parameters (see npar),

  • "LL" for the log-likelihood value (see logLik),

  • "AIC" for the AIC value (see AIC),

  • "BIC" for the BIC value (see BIC),

  • "WAIC" for the WAIC value (also shows its standard error sd(WAIC) and the number pWAIC of effective model parameters, see WAIC),

  • "MMLL" for the marginal model log-likelihood,

  • "BF" for the Bayes factor,

  • "pred_acc" for the prediction accuracy (see pred_acc).

add_form

[logical(1)]
Add the model formulas?

x

An object of class RprobitB_model_selection.

digits

[integer(1)]
The number of digits.

Value

A data.frame, criteria in columns, models in rows.

Details

See the vignette on model selection for more details.