Learn R Programming

GDAtools (version 2.1)

quadrant: Quadrant of active individuals

Description

Computes the quadrant of active individuals from a MCA.

Usage

quadrant(resmca, dim = c(1,2))

Value

Returns a factor with four levels : upper_left, lower_left, upper_right, lower_right

Arguments

resmca

object of class MCA, speMCA, or csMCA

dim

dimensions of the space (default is c(1,2))

Author

Nicolas Robette

See Also

speMCA, csMCA

Examples

Run this code
# specific MCA of Music example data set
data(Music)
junk <- c("FrenchPop.NA", "Rap.NA", "Rock.NA", "Jazz.NA", "Classical.NA")
mca <- speMCA(Music[,1:5], excl = junk)
# distribution of the quadrants
table(quadrant(mca, c(1,2)))

Run the code above in your browser using DataLab