lcreg.aov: ANOVA for the log-contrast regression versus the uncostrained...

View source: R/lcreg.aov.R

ANOVA for the log-contrast regression versus the uncostrained linear regressionR Documentation

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

Description

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

Usage

lcreg.aov(mod0, mod1)

Arguments

mod0

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

mod1

The unconstrained linear regression model. The object returned by ulc.reg.

Details

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

Value

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

Author(s)

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

See Also

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

Examples

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)

Compositional documentation built on Oct. 23, 2023, 5:09 p.m.