lcglm.aov: ANOVA for the log-contrast GLM versus the uncostrained GLM

View source: R/lcglm.aov.R

ANOVA for the log-contrast GLM versus the uncostrained GLMR Documentation

ANOVA for the log-contrast GLM versus the uncostrained GLM

Description

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

Usage

lcglm.aov(mod0, mod1)

Arguments

mod0

The log-contrast GLM. The object returned by lc.glm.

mod1

The unconstrained GLM. The object returned by ulc.glm.

Details

A chi-square test is performed to test the zero-to-sum constraints of the regression coefficients.

Value

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

Author(s)

Michail Tsagris.

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

See Also

lc.glm, ulc.glm

Examples

y <- rbinom(150, 1, 0.5)
x <- as.matrix(iris[, 2:4])
x <- x / rowSums(x)
mod0 <- lc.glm(y, x)
mod1 <- ulc.glm(y, x)
lcglm.aov(mod0, mod1)

Compositional documentation built on Oct. 9, 2024, 5:10 p.m.