fast.anova: Fast ANOVA

Description Usage Arguments See Also Examples

Description

A fast sequential analysis of variance (ANOVA). Mainly developed for internal use.

Usage

1
fast.anova(x, y, assign = NULL, family = gaussian(), test = c("LRT", "F"))

Arguments

x

Design matrix of dimension n * p.

y

Response vector of observations of length n.

assign

Integer vector assigning columns to terms can be also given as x attribute in which case the argument is ignored. If an intercept exist it is expected to be the first column in x and it has to be specified by a '0' in tis vector. For details about assign see model.matrix.

family

A description of the error distribution and link function to be used in the model. For GLMs this can be a character string naming a family function or the result of a call to a family function. (See family for details of family functions.)

test

The name of the test either "LRT" (default) for likelihood ratio test or "F" for F test.

See Also

lm, anova, and aov.

Examples

1
2
3
4
y <- rnorm(n = 100)
x <- matrix(data = rnorm(1000), nrow = 100)
a <- 1:10
fast.anova(x = x, y = y, assign = a)

QTCAT/hit documentation built on May 8, 2019, 3:48 a.m.