SimAn(data, G, acg, weight = 2, nameg = NA, sr = NA, sc = NA,
nd = 2, dp = 2, oar = 1, oac = 1, multiple = 0, arg)
weight
refers to the weighting of each table included in
simultaneous analysis in order to balance the influence of each table in the
joint analysis, as measured by the inertia, and to prevent the joint analysis
from being dominated by a particular table. The choice of this weighting
depends on the aims of the analysis and on the initial structure of the
information, and different values may be used.
Three values are possible, weight = 1
means no weighting ,
weight = 2
means that the weighting is the inverse of the first
eigenvalue (square of first singular value) of each table and is given by
default, and weight = 3
means that the weighting is the inverse of the
total inertia of each table.The parameter nameg
allows the user to distinguish in the interpretation
of the results as well as in the graphical representations which partial rows
belong to each table.
By default, if this parameter is not indicated, partial rows of the first table
will be identified as G1
followed by the name of the row, partial rows
of the second table as G2
followed by the name of the row and so on.
The nameg
argument also allows the different tables in the analysis to
be identified.
Zarraga, A. & Goitisolo, B. (2002). Methode factorielle pour l analyse simultanee de tableaux de contingence. Revue de Statistique Appliquee, L, 47--70
Zarraga, A. & Goitisolo, B. (2003). Etude de la structure inter-tableaux a travers l Analyse Simultanee, Revue de Statistique Appliquee, LI, 39--60.
Zarraga, A. and Goitisolo, B. (2006). Simultaneous analysis: A joint study of several contingency tables with different margins. In: M. Greenacre, J. Blasius (Eds.), Multiple Correspondence Analysis and Related Methods, Chapman & Hall/CRC, Boca Raton, Fl, 327--350.
Zarraga, A. & Goitisolo, B. (2009). Simultaneous analysis and multiple factor analysis for contingency tables: Two methods for the joint study of contingency tables. Computational Statistics and Data Analysis, 53, 3171--3182.
Zarraga, A. & Goitisolo, B. (2011). Simultaneous Analysis in S-PLUS: The SimultAn Package. Journal of Statistical Software, 70 (11), 1--22.
summary.SimAn
,
plot.SimAn
.
data(shoplifting)
dataSA <- shoplifting
### SA without supplementary elements
SimAn.out <- SimAn(data=dataSA, G=2, acg=list(1:9,10:18), weight= 2,
nameg=c("M", "F"))
### Multiple SA without output for columns
SimAn.out <- SimAn(data=t(dataSA), G=2, weight= 2,
nameg=c("M", "F"), oac=0, multiple=1, arg=list(1:9,10:18))
### Summary
summary(SimAn.out)
### Graphs on screen
plot(SimAn.out)
### Graphs on a pdf file (without columns)
pdf('SAGr.pdf', paper="a4r", width=12, height=9)
plot(SimAn.out, s1=1, s2=2, screen=FALSE, oac=0)
dev.off()
Run the code above in your browser using DataLab