calcVarExpPerComponent {parafac4microbiome} | R Documentation |
Calculate the variance explained of a PARAFAC model, per component
calcVarExpPerComponent(Fac, X)
Fac |
Fac object output of a model |
X |
Input dataset |
Vector of scalars of the percentage of variation explained per component
X = array(rnorm(108*100*10), c(108,100,10))
model = parafac(X, 2)
calcVarExpPerComponent(model$Fac, X)