Learn R Programming

RSDA (version 3.2.1)

ex_mcfa2: Multiple Correspondence Analysis Example

Description

example for the sym.mcfa function.

Usage

data(ex_mcfa2)

Arguments

Format

An object of class data.frame with 130 rows and 7 columns.

Examples

Run this code
data("ex_mcfa2")

ex <- classic.to.sym(ex_mcfa2,
                    concept = employee_id,
                     variables = c(employee_id, salary, region, evaluation, years_worked),
                     salary = sym.set(salary),
                     region = sym.set(region),
                     evaluation = sym.set(evaluation),
                     years_worked = sym.set(years_worked))

res <- sym.mcfa(ex, c(1,2,3,4))
mcfa.scatterplot(res[,1], res[,2], sym.data = ex, pos.var = c(1,2,3,4))

Run the code above in your browser using DataLab