compare_subject {EMC2} | R Documentation |
Information Criteria For Each Participant
Description
Returns the BPIC/DIC based model weights for each participant in a list of samples objects
Usage
compare_subject(
sList,
stage = "sample",
filter = 0,
use_best_fit = TRUE,
print_summary = TRUE,
digits = 3
)
Arguments
sList |
List of samples objects |
stage |
A string. Specifies which stage the samples are to be taken from |
filter |
An integer or vector. If it's an integer, iterations up until the value set by |
use_best_fit |
Boolean, defaults to |
print_summary |
Boolean (defaults to |
digits |
Integer, significant digits in printed table |
Value
List of matrices for each subject of effective number of parameters, mean deviance, deviance of mean, DIC, BPIC and associated weights.
Examples
# For a broader illustration see `compare`.
# Here we just take two times the same model, but normally one would compare
# different models
compare_subject(list(m0 = samples_LNR, m1 = samples_LNR))