# NOT RUN {
# A regularized Correspondence Analysis
# }
# NOT RUN {
library(FactoMineR)
perfume <- read.table("http://factominer.free.fr/docs/perfume.txt",header=TRUE,
sep="\t",row.names=1)
rownames(perfume)[4] <- "Cinema"
isa.delt <- estim_delta(perfume, nbsim = 10, transformation = "CA")
isa.ca <- ISA(perfume, delta = isa.delt$delta, noise = "Binomial", transformation = "CA")
rownames(isa.ca$mu.hat) <- rownames(perfume)
colnames(isa.ca$mu.hat) <- colnames(perfume)
res.isa.ca <- CA(isa.ca$mu.hat, graph = FALSE)
plot(res.isa.ca, title = "Regularized CA", cex = 0.6, selectCol = "contrib 20")
# }
Run the code above in your browser using DataLab