FormatCompareAIC: Format data to be used with compare_AIC()

View source: R/FormatCompareAIC.R

FormatCompareAICR Documentation

Format data to be used with compare_AIC()

Description

Format data to be used with compare_AIC(), compare_AICc() and compare_BIC().
Note that logLik is supposed to not be -logLik.

Usage

FormatCompareAIC(logLik, nobs, df)

Arguments

logLik

The log likelihood

nobs

Number of observations

df

Number of parameters

Details

FormatCompareAIC formats data to be used with compare_AIC()

Value

An object to be used with compare_AIC()

Author(s)

Marc Girondot marc.girondot@gmail.com

See Also

Other AIC: ExtractAIC.glm(), compare_AICc(), compare_AIC(), compare_BIC()

Examples

## Not run: 
ED <- FormatCompareAIC(logLik=-140, nobs=100, df=3)
L <- FormatCompareAIC(logLik=-145, nobs=100, df=4)
compare_AIC(L=L, ED=ED)
compare_AICc(L=L, ED=ED)
compare_BIC(L=L, ED=ED)

## End(Not run)

HelpersMG documentation built on Oct. 5, 2023, 5:08 p.m.