FAMoS (version 0.1.0)

ic.order: Plot Model Information Criteria

Description

Plots the information criteria of the tested models in ascending order.

Usage

ic.order(input = getwd(), mrun = NULL, number = NULL, ic = "AICc",
  colour.par = NULL, 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 folder will be used for evaluation.

number

Specifies the number of models that will be plotted. If NULL (default), all tested models will be used for plotting.

ic

The information criterion the model selection will be based on. Options are "AICc", "AIC" and "BIC". Default to "AICc".

colour.par

The name of a model parameter. All models containing this parameter will be coloured red. Default to NULL.

save.output

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

...

Additional parameters that will be passed on to barplot.

Value

Barplot showing the ordered information criteria of the tested models. Also returns a data frame containing each unique tested model with its best information criteria.

Examples

Run this code
# NOT RUN {
#plot the information criteria
ic.order(input = famos.run, log = "y")
ic.order(input = famos.run, log = "y", colour.par = "p1")
# }

Run the code above in your browser using DataCamp Workspace