Description Usage Arguments Value Examples
View source: R/PrintContributions.R
Create a summary of the contribution of each effect and each of their Principal Component (PC) on the total variance. Additionnally plot a graph with the ordered contribution.
1 | PrintContributions(ResPCALMEffects, nPC = 5)
|
ResPCALMEffects |
A ResPCALMEffects list from |
nPC |
The number of PC to print in the tables |
A list of 3 :
EffectTable
A matrix with variance percentage of each PC for each effect
ContribTable
A matrix with the contribution of each PC to the total variance
Barplot
A barplot with the PCs which have the biggest contributions to the total variance
1 2 3 4 5 | data('UCH')
ResLMModelMatrix = LMModelMatrix(formula=as.formula(UCH$formula),design=UCH$design)
ResLMEffectMatrices = LMEffectMatrices(ResLMModelMatrix,outcomes=UCH$outcomes)
ResPCALMEffects = PCALMEffects(ResLMEffectMatrices,method="ASCA-E")
PrintContributions(ResPCALMEffects)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.