Description Usage Arguments Value Author(s) Examples
Given data and a matrix describing a design for a linear model, the function creates an ANOVA table, using sums of squares based on a subdivision of the columns of the design matrix given as the third argument for the function.
1 | anovatable(data, design, subdivisions = c(1, dim(design)[2] - 1))
|
data |
A vector with data values |
design |
A matrix with the same number of rows as there are data values. The matrix represents the design matrix for the linear model the ANOVA table is based on. |
subdivisions |
A vector of integers summing to the number of columns in the design matrix. The number of rows of the ANOVA table will be equal to the length of this vector. |
An ANOVA table.
Petter Mostad <mostad@chalmers.se>
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.