Learn R Programming

Compositional (version 5.5)

ANOVA for the log-contrast regression versus the uncostrained log-contrast regression: ANOVA for the log-contrast regression versus the uncostrained log-contrast regression

Description

ANOVA for the log-contrast regression versus the uncostrained log-contrast regression.

Usage

lcreg.aov(mod0, mod1)

Arguments

mod0

The log-contrast regression model. The object returned by lc.reg.

mod1

The unconstrained log-contrast regression model. The object returned by ulc.reg.

Value

A vector with two vaues, the F-statistic and its associated p-value.

Details

An F-test is performed to test the zero-to-sum constraints of the regression coefficients.

See Also

lc.reg, ulc.reg, alfa.pcr, alfa.knn.reg

Examples

Run this code
# NOT RUN {
y <- iris[, 1]
x <- as.matrix(iris[, 2:4])
x <- x / rowSums(x)
mod0 <- lc.reg(y, x)
mod1 <- ulc.reg(y, x)
lcreg.aov(mod0, mod1)
# }

Run the code above in your browser using DataLab