aicc.weights: Plot evidence ratios

Description Usage Arguments Details Value Examples

Description

Calculates the evidence ratios for each parameter based on Akaike weights and plots them.

Usage

1
2
aicc.weights(input = getwd(), mrun = NULL, reorder = TRUE,
  save.output = NULL)

Arguments

input

Either a string containing the directory which holds the "FAMoS-Results" folder or a matrix containing the tested models along with the respective information criteria. Default to getwd().

mrun

A string giving the number of the corresponding FAMoS run, e.g "004". If NULL (default), all FAMoS runs in the "FAMoS-Results/TestedModels/" folder will be used for evaluation.

reorder

If TRUE, results will be ordered by evidence ratios (descending). If FALSE, the order of parameters will be the same as the order specified in init.par in famos. Default to TRUE.

save.output

A string containing the location and name under which the figure should be saved (format is pdf). Default to NULL.

Details

The plot shows the relative support or evidence ratio for each parameter. Parameters included in the best model are printed bold and the corresponding lines are coloured in red.

Value

A plot showing the evidence ratios for all model parameters. Additionally, the evidence ratios are returned.

Examples

1
2
3
#plot evidence ratios
aicc.weights(input = famos.run)
aicc.weights(input = famos.run, reorder = FALSE)

FAMoS documentation built on May 2, 2019, 2:10 p.m.