Learn R Programming

binequality (version 1.0.4)

modelAvg: A function to calculate model averages

Description

This function calculates model averaged statistics using AIC and BIC.

Usage

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.

Value

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

Details

Calculates model averaged statistics using BIC and AIC as weights.

Examples

Run this code
# NOT RUN {
#not run, internal function
# }

Run the code above in your browser using DataLab