FAMoS (version 0.1.0)

aicc.weights: Plot evidence ratios

Description

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

Usage

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.

Value

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

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.

Examples

Run this code
# NOT RUN {
#plot evidence ratios
aicc.weights(input = famos.run)
aicc.weights(input = famos.run, reorder = FALSE)
# }

Run the code above in your browser using DataLab