modelAvg: A function to calculate model averages

Description Usage Arguments Details Value Examples

Description

This function calculates model averaged statistics using AIC and BIC.

Usage

1
modelAvg(fitList, ID, nonCon = TRUE)

Arguments

fitList

a (non-empty) list of fitted distributions

ID

a (non-empty) string of the ID column name.

nonCon

an optional logical, where nonCon == TRUE excludes models failing to converged and nonCon == FALSE includes them.

Details

Calculates model averaged statistics using BIC and AIC as weights.

Value

Returns a list with aic and bic values, aic and bic averages, and the aic and bic weights.

Examples

1
#not run, internal function

Example output

Loading required package: gamlss
Loading required package: splines
Loading required package: gamlss.data
Loading required package: gamlss.dist
Loading required package: MASS
Loading required package: nlme
Loading required package: parallel
 **********   GAMLSS Version 5.0-2  ********** 
For more on GAMLSS look at http://www.gamlss.org/
Type gamlssNews() to see new features/changes/bug fixes.

Loading required package: gamlss.cens
Loading required package: survival

binequality documentation built on May 2, 2019, 9:58 a.m.