Learn R Programming

hit (version 0.1-0)

fast.anova: Fast ANOVA

Description

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

Usage

fast.anova(x, y, assign = NULL)

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 here it has to specified by a '0'. For details

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