Learn R Programming

hit (version 0.2-2)

fast.anova: Fast ANOVA

Description

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

Usage

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 glm 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

Run this code
y <- rnorm(n = 100)
x <- matrix(data = rnorm(1000), nrow = 100)
a <- 1:10
fast.anova(x = x, y = y, assign = a)

Run the code above in your browser using DataLab