aicc.weights {FAMoS} | R Documentation |
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 |
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 |
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
#plot evidence ratios
aicc.weights(input = famos.run)
aicc.weights(input = famos.run, reorder = FALSE)