Description Usage Arguments Value Author(s) See Also Examples
Computation of fit contributions.
1 | CPfitpartitioning(Xprep, n, m, p, A, B, C, laba, labb, labc)
|
Xprep |
Matrix (or data.frame coerced to a matrix) of order ( |
n |
Number of |
m |
Number of |
p |
Number of |
A |
Component matrix for the |
B |
Component matrix for the |
C |
Component matrix for the |
laba |
Optional vector of length |
labb |
Optional vector of length |
labc |
Optional vector of length |
A list including the following components:
fitA |
Fit contribution for the |
fitB |
Fit contribution for the |
fitC |
Fit contribution for the |
Maria Antonietta Del Ferraro mariaantonietta.delferraro@yahoo.it
Henk A.L. Kiers h.a.l.kiers@rug.nl
Paolo Giordani paolo.giordani@uniroma1.it
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | data(TV)
TVdata=TV[[1]]
labSCALE=TV[[2]]
labPROGRAM=TV[[3]]
labSTUDENT=TV[[4]]
# permutation of the modes so that the A-mode refers to students
TVdata <- permnew(TVdata, 16, 15, 30)
TVdata <- permnew(TVdata, 15, 30, 16)
# CP solution
TVcp <- CPfuncrep(TVdata, 30, 16, 15, 2, 1, 1, 1, 0, 1e-6, 10000)
# Fitpartitioning of the CP solution
FitCP <- CPfitpartitioning(TVdata, 30, 16, 15, TVcp$A, TVcp$B, TVcp$C,
labSTUDENT, labSCALE, labPROGRAM)
# Fitpartitioning of the CP solution (when labels are not available)
FitCP <- CPfitpartitioning(TVdata, 30, 16, 15, TVcp$A, TVcp$B, TVcp$C)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.