Learn R Programming

lamme (version 0.0.1)

abc: the ABC procedure for model selection

Description

the AIC comparison with Modified Box-Cox Transformation (ABC) is a diagnostic procedure to help select among various additive and multiplicative models

Usage

abc(y, g, x = 0)

Arguments

y

the raw posttest scores of a continuous outcome variable.

g

the categorical variable that denotes the group membership.

x

(optional) the raw pretest scores of a continuous outcome variable.

Value

AIC results of different models. The model with smallest AIC is preferred.

Details

When only `y` and `g` are specified, the ABC procedure compares LANOVA and ANOVA models. When `x` is also specified, the ABC procedure compares LANCOVA, ANCOVA, ANCOHET, and ANCOVA with log-transformed y.

Examples

Run this code
# NOT RUN {
data("schoene")
attach(schoene)
abc(post_HRT,group,pre_HRT)
abc(post_HRT,group)
# }

Run the code above in your browser using DataLab