Learn R Programming

EMC2 (version 2.0.2)

compare_MLL: Calculate a table of model probabilities based for a list of samples objects based on samples of marginal log-likelihood (MLL) added to these objects by run_IS2. Probabilities estimated by a bootstrap ath picks a vector of MLLs, one for each model in the list randomly with replacement nboot times, calculates model probabilities and averages

Description

Calculate a table of model probabilities based for a list of samples objects based on samples of marginal log-likelihood (MLL) added to these objects by run_IS2. Probabilities estimated by a bootstrap ath picks a vector of MLLs, one for each model in the list randomly with replacement nboot times, calculates model probabilities and averages

Usage

compare_MLL(mll, nboot = 1e+05, digits = 2, print_summary = TRUE)

Value

Vector of model probabilities with names from samples list.

Arguments

mll

List of samples objects with IS_samples attribute added by by run_IS2

nboot

Integer number of bootstrap samples, the default (1e5) usually gives stable results at 2 decimal places.

digits

Integer, significant digits in printed table

print_summary

Boolean (default TRUE) print table of results