powered by
Calculate the variation explained by a PARAFAC model.
calculateVarExp(Fac, X)
The variation explained by the model, expressed as a fraction (between 0-1).
Fac object output from the parafac() function.
parafac()
Input data of the PARAFAC model.
X = Fujita2023$data model = parafac(X, nfac=1, nstart=1, verbose=FALSE) calculateVarExp(model$Fac, X)
Run the code above in your browser using DataLab