T3fitpartitioning {ThreeWay} | R Documentation |
Fit of each entity per mode
Description
Computation of fit contributions by combinations of modes in case of ‘renormalization’.
Usage
T3fitpartitioning(Xprep, n, m, p, AS, BT, CU, K, renormmode, laba, labb, labc)
Arguments
Xprep |
Matrix (or data.frame coerced to a matrix) of order ( |
n |
Number of |
m |
Number of |
p |
Number of |
AS |
Component matrix for the |
BT |
Component matrix for the |
CU |
Component matrix for the |
K |
Matricized core array (frontal slices) |
renormmode |
Renormalization option (0 for no renormalization, 1 for fit contribution to total fit of each |
laba |
Optional vector of length |
labb |
Optional vector of length |
labc |
Optional vector of length |
Value
A list including the following components:
fitA |
Fit contribution for the |
fitB |
Fit contribution for the |
fitC |
Fit contribution for the |
ABcontr |
Contribution to the goodness of fit contributions by combinations of |
BCcontr |
Contribution to the goodness of fit contributions by combinations of |
ACcontr |
Contribution to the goodness of fit contributions by combinations of |
Note
The computation of the fit contributions by combinations of modes is done in case of ‘renormalization’.
In Tucker1, renormmode
must be equal to 0.
Author(s)
Maria Antonietta Del Ferraro mariaantonietta.delferraro@yahoo.it
Henk A.L. Kiers h.a.l.kiers@rug.nl
Paolo Giordani paolo.giordani@uniroma1.it
See Also
Examples
data(Bus)
# labels for Bus data
laba <- rownames(Bus)
labb <- substr(colnames(Bus)[1:5], 1, 1)
labc <- substr(colnames(Bus)[seq(1,ncol(Bus),5)], 3, 8)
# T3 solution
BusT3 <- T3funcrep(Bus, 7, 5, 37, 2, 2, 2, 0, 1e-6)
# Fitpartitioning of the T3 solution
FitT3 <- T3fitpartitioning(Bus, 7, 5, 37, BusT3$A, BusT3$B, BusT3$C, BusT3$H, 0,
laba, labb, labc)
# Fitpartitioning of the T3 solution (when labels are not available)
FitT3 <- T3fitpartitioning(Bus, 7, 5, 37, BusT3$A, BusT3$B, BusT3$C, BusT3$H, 0)