variance: Variance table

Description Usage Arguments Value See Also Examples

View source: R/functions_description.r

Description

variance returns a table of variance for the selected dimensions.

Usage

1
variance(object, dim = NULL)

Arguments

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

Value

If assigned variance returns a matrix version of the table of variance.

See Also

soc.mca, print.soc.mca

Examples

1
2
3
example(soc.ca)
variance(result)
variance(result, dim = 1:4)

Example output

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

soc.ca documentation built on Sept. 5, 2021, 5:21 p.m.

Related to variance in soc.ca...