Description Usage Arguments Value Examples
View source: R/LMEffectMatrices.R
Runs a GLM model and decomposes the outcomes into effect matrices for each model terms
1 2 | LMEffectMatrices(ResLMModelMatrix, outcomes, SS = TRUE,
newSSmethod = TRUE, contrastList = NA)
|
ResLMModelMatrix |
A list of 3 from |
outcomes |
A nxm matrix with n observations and m response variables |
SS |
a logical whether to compute the effect percentage variations |
newSSmethod |
a logical whether to use the new optimized method to compute SS |
contrastList |
a list of contrast for each parameter. The function creates automatically the list by default |
A list with the following elements:
formulaA formula object with the expression of the GLM used to predict the outcomes
designA nxk data frame with the "free encoded" experimental design.
ModelMatrixA nxK model matrix specifically encoded for the ASCA-GLM method.
outcomesA nxm matrix with n observations and m response variables
effectMatricesA list of p effect matrices for each model terms
modelMatrixByEffectA list of p model matrices by models terms
predictedvaluesA nxm matrix with the predicted values
residualsA nxm matrix with the residuals
parametersA pxm matrix with the coefficients of every parameters by response variables
covariateEffectsNamesUniqueA character vector with the p unique name of the model terms
covariateEffectsNamesA character vector with K names of the coefficients
1 2 3 | data('UCH')
ResLMModelMatrix <- LMModelMatrix(formula=as.formula(UCH$formula),design=UCH$design)
LMEffectMatrices(ResLMModelMatrix,outcomes=UCH$outcomes)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.