#############
##
## Example with the UNIDO Manufacturing value added data
data(va3way)
dim(va3way)
## Treat quickly and dirty the zeros in the data set (if any)
va3way[va3way==0] <- 0.001
##
res <- Tucker3(va3way)
res
print(res$fit)
print(res$A)
## Print the core matrix
print(res$GA)
## Distance-distance plot
plot(res, which="dd", main="Distance-distance plot")
## Paired component plot, mode A
plot(res, which="comp", main="Paired component plot (mode A)")
## Paired component plot, mode B
plot(res, which="comp", mode="B", main="Paired component plot (mode B)")
## Joint biplot
plot(res, which="jbplot", main="Joint biplot")
## Trajectory
plot(res, which="tjplot", choices=c(1:4), arrows=FALSE, main="Trajectory biplot")
Run the code above in your browser using DataLab