View source: R/MPsearchfunctions.R
getIC | R Documentation |
Extract information criterion or other info from a fitted model
getIC(
x,
type = c("aic", "bic", "sic", "ll", "np"),
N,
usefitfunc = FALSE,
infotype = "oakes1999"
)
x |
Fitted |
type |
String indicating information criterion to extract. See details. |
N |
Sample size (used in BIC computations). Could be auto-detected, but not done yet. |
usefitfunc |
Logical value. Toggles how to obtain fit function (log-likelihood). At some point how these are stored may have changed. |
infotype |
If |
Use of Bayesian priors for MP models sometimes complicates computation of some information criterion as typically done by some popular software packages, and as done by Mislevy (1986). Typically computation of AIC, BIC, and the log-likelihood is done by plugging in parameter estimates (e.g., based on the posterior mode) into the equation for the marginal log-likelihood, instead of computing the value of the log-posterior. As the latter is typically done by OpenMx, the former is done by this function.
Currently supported are AIC ("aic"), BIC ("bic"), log-likelihood ("ll"), number of parameters ("np"), and stochastic information criterion ("sic").
Mislevy, R.J. (1986) Bayes modal estimation in item response models. Psychometrika 51, 177–195. https://doi.org/10.1007/BF02293979
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.