View source: R/extended_s3_methods.R
logLik.fits_ids_dm | R Documentation |
These methods are wrappers to extract specific model fit statistics
(log-likelihood, AIC, BIC) for each model in a fits_ids_dm
object.
## S3 method for class 'fits_ids_dm'
logLik(object, ...)
## S3 method for class 'fits_ids_dm'
AIC(object, ..., k = 2)
## S3 method for class 'fits_ids_dm'
BIC(object, ...)
object |
a |
... |
additional arguments |
k |
numeric; penalty parameter for the AIC calculation. Defaults to 2 (standard AIC). |
Each function retrieves the relevant statistics by calling
calc_stats with type = "fit_stats"
and selects the columns
for ID
and the required statistic.
An object of type fit_stats
containing the respective statistic in
one column (named Log_Like
, AIC
, or BIC
) and a corresponding ID
column.
stats::AIC()
, stats::BIC()
, logLik.drift_dm
# get an auxiliary fits_ids object for demonstration purpose;
# such an object results from calling load_fits_ids
all_fits <- get_example_fits_ids()
# AICs
AIC(all_fits)
# BICs
BIC(all_fits)
# Log-Likelihoods
logLik(all_fits)
# All unique and free parameters
coef(all_fits)
# Or all parameters across all conditions
coef(all_fits, select_unique = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.