Description Usage Arguments Details Value Author(s) References Examples
View source: R/ConstructContrasts.R
Constructs the contrasts for main effects and interaction for a dataframe of factors.
1 | ConstructContrasts(Factors, MaxOrderIter = 2)
|
Factors |
A data frame of factors (For general data frames the functions extracts all the columns that are factors). |
MaxOrderIter |
Maximum order of the interaction to construct. |
Constructs the contrasts for main effects and interaction for a dataframe of factors. For a general data frame the functions extracts all the factors first. The function constructs the contrasts for all the main effects and the interactions up to order MaxOrderIter.
Groups |
The groups resulting of combining the levels of all the factors. |
Contrasts |
A matrix of contrasts containing the contrasts that are associated to the main affects and interaction. The rows contain contrasts and the columns the groups to combine. |
Effects |
A factor describing which contrasts correspond to each effect. |
Jose Luis Vicente-Villardon, Laura Vicente-Gonzalez
Bapat, R. B. (2012). Linear algebra and linear models. Springer Science & Business Media.
1 | ConstructContrasts(wine[,1:2])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.