OUwieModelAvg: Model average the parameters across (many) OUwie results...

Description Usage Arguments Details Value Examples

View source: R/OUwieAvg.R

Description

Internally calculates AICc weights and uses them to model average the parameter values output from OUwieParSumm.

Usage

1
OUwieModelAvg(ou.parameters, OU.only = FALSE, na.rm = TRUE)

Arguments

ou.parameters

An object of class ouwiepars as output from OUwieParSumm or CleanOUwieParameters

OU.only

Whether any Brownian motion models should be dropped before model averaging

na.rm

Whether to ignore model results with NA AICc values

Details

na.rm = TRUE will remove any models where AICc == NA, but will use other models for model averaging; na.rm = FALSE will remove any replicates (rows of the output) with any models where AICc == NA.

Value

A list with two elements:

Weights

A data.frame of the AICc weights for each model across the replicates

Counts

A named vector giving the number of replicates in which each model has the highest AICc weight

Examples

1
2
ou.parameters <- OUwieParSumm(ou.results, regime.mat)
OUwieModelAvg(ou.parameters)

willgearty/pcmtools documentation built on Nov. 5, 2019, 12:20 p.m.