calcVarExpPerComponent: Calculate the variance explained of a PARAFAC model, per...

View source: R/utils.R

calcVarExpPerComponentR Documentation

Calculate the variance explained of a PARAFAC model, per component

Description

Calculate the variance explained of a PARAFAC model, per component

Usage

calcVarExpPerComponent(Fac, X)

Arguments

Fac

Fac object output of a model

X

Input dataset

Value

Vector of scalars of the percentage of variation explained per component

Examples

X = array(rnorm(108*100*10), c(108,100,10))
model = parafac(X, 2)
calcVarExpPerComponent(model$Fac, X)

parafac4microbiome documentation built on June 8, 2025, 11:40 a.m.