PrintContributions: Summary of the contributions from each effect

Description Usage Arguments Value Examples

View source: R/PrintContributions.R

Description

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.

Usage

1
PrintContributions(ResPCALMEffects, nPC = 5)

Arguments

ResPCALMEffects

A ResPCALMEffects list from PCALMEffects

nPC

The number of PC to print in the tables

Value

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

Examples

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)

FranceschiniS/LMWiRe documentation built on Oct. 30, 2019, 6:20 p.m.