calculateVarExp {parafac4microbiome} | R Documentation |
Calculate the variation explained by a PARAFAC model.
Description
Calculate the variation explained by a PARAFAC model.
Usage
calculateVarExp(Fac, X)
Arguments
Fac |
Fac object output from the |
X |
Input data of the PARAFAC model. |
Value
The variation explained by the model, expressed as a fraction (between 0-1).
Examples
X = Fujita2023$data
model = parafac(X, nfac=1, nstart=1, verbose=FALSE)
calculateVarExp(model$Fac, X)
[Package parafac4microbiome version 1.0.3 Index]