bestAIC: Compare AIC

Description Usage Arguments Value Author(s) See Also Examples

View source: R/bestAIC.R

Description

This function computes and compares the AIC value between two models.

Usage

1
bestAIC(m1, m2)

Arguments

m1

is a fitted model.

m2

is another fitted model.

Value

Shows a message on the screen, indicating which model has the lower AIC.

Author(s)

Laura Aixal<c3><a0> Perell<c3><b3>

See Also

AIC

Examples

1
2
3
model.wt <- lm(mpg~wt, data=mtcars)
model.wt.hp <- lm(mpg~wt+hp, data=mtcars)
bestAIC(model.wt, model.wt.hp)

arnima-github/biometry2 documentation built on May 26, 2019, 6:44 p.m.