View source: R/lmwEffectMatrices.R
lmwEffectMatrices | R Documentation |
Estimates by OLS the effect matrices M^(_0), M^(_1), ...M^(_f), ...M^(_E) for the outcomes and design matrix provided in object resLmwModelMatrix
and calculates the linked percentage of variances.
lmwEffectMatrices(resLmwModelMatrix, SS = TRUE, contrastList = NA)
resLmwModelMatrix |
A list of 5 elements from |
SS |
Logical. If |
contrastList |
A list of contrast for each parameter. If |
A list with the following elements:
lmwDataList
The initial object: a list with outcomes, design and formula.
modelMatrix
A nxK model matrix specifically encoded for the ASCA-GLM method.
modelMatrixByEffect
A list of p model matrices for each effect.
effectsNamesUnique
A character vector with the p names of the model effects, each repeated once.
effectsNamesAll
A character vector with the K names of the model effects ordered and repeated as the column names of the model matrix.
effectMatrices
A list of p effect matrices for each model effect.
predictedvalues
The nxm matrix of predicted outcome values.
residuals
The nxm matrix of model residuals.
parameters
The pxm matrix of the estimated parameters.
type3SS
A vector with the type III sum of squares for each model effect (If SS = TRUE).
variationPercentages
A vector with the percentage of variance for each model effect (If SS = TRUE).
varPercentagesPlot
A ggplot bar plot of the contributions of each model effect to the total variance (If SS = TRUE).
data('UCH') resLmwModelMatrix <- lmwModelMatrix(UCH) lmwEffectMatrices(resLmwModelMatrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.