Description Usage Arguments Value See Also Examples
View source: R/functions_description.r
variance returns a table of variance for the selected dimensions.
1 |
object |
is a soc.ca object |
dim |
is the included dimensions, if set to NULL, then only the dimensions explaining approx. more than 0.90 of the adjusted variance are included |
If assigned variance returns a matrix version of the table of variance.
soc.mca, print.soc.mca
1 2 3 |
Loading required package: ggplot2
soc.ca> data(taste)
soc.ca> # Create a data frame of factors containing all the active variables
soc.ca> taste <- taste[which(taste$Isup == 'Active'), ]
soc.ca> attach(taste)
soc.ca> active <- data.frame(TV, Film, Art, Eat)
soc.ca> sup <- data.frame(Gender, Age, Income)
soc.ca> detach(taste)
soc.ca> # Runs the analysis
soc.ca> result <- soc.mca(active, sup)
Dim 1. 2. 3. 4.
Eigen 0.40 0.35 0.32 0.31
Var 6.4 5.6 5.2 4.9
Adj.Var 47.6 21.5 11.8 7.1
Cum % 47.6 69.1 80.9 88.0
Dim 1. 2. 3. 4.
Eigen 0.40 0.35 0.32 0.31
Var 6.4 5.6 5.2 4.9
Adj.Var 47.6 21.5 11.8 7.1
Cum % 47.6 69.1 80.9 88.0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.