Questions tagged [mca]

18 questions
2
votes
2 answers

Obtaining Multiple Correspondence Analysis (MCA) Plot in Python Using Prince Package

I am trying to plot a 2D MCA plot in Python. I am trying to replicate the tutorial found in the Prince Github Repository https://github.com/MaxHalford/prince I currently have the following working: import pandas as pd X =…
rtob
  • 169
  • 3
  • 16
1
vote
1 answer

The oneM2M Mcc interface?

I know that interface Mca is the channel throught CRUD operations comme from AE to CSE. But, what about Mcc? Mcc is proposed to connect two CSEs. But which kind of operations are executed through this Mcc interface? Please, a sample operation would…
Alex Co
  • 11
  • 1
1
vote
1 answer

How to include labels from a supplementary column in MCA visualisation using MCA?

I have this data frame df <- data.frame(subjects = 12:23, Why_are_you_not_happy = c(1,2,"1,2,5",5,1,2,"3,4",3,2,"1,5",3,4), why_are_you_sad = …
Anas116
  • 797
  • 2
  • 9
1
vote
0 answers

(Python) Prince MCA transformation error on new data

I am using the newest version of prince (0.7.1), but this seems to be an issue on previous versions as well. I have a categorical dataframe named 'cat' that I am attempting to find an embedding for. mca =…
1
vote
2 answers

MCA() returns "array must not contain infs or nans"

I have a dataframe of ones and zeros which act as metadata to describe the properties of some features of the main dataset. As part of a data exploration I was running the following code on the dataframe, to express those features tags into a 2D…
Ignacio Alorre
  • 7,307
  • 8
  • 57
  • 94
0
votes
0 answers

I am trying to plot a Multiple Correspondence Analysis Object Plot to fit the dataset to coordinates using PYTHON

Below is the Python code that keeps giving me an error: AttributeError: 'MCA' object has no attribute 'plot_coordinates' I have tried everything to get it corrected my final resolution is to come to StackOverflow for Help. Thanks #import pandas as…
Emy
  • 19
  • 4
0
votes
0 answers

How to run multiple S-function modules in one MATLAB/Simulink model?

The flag of the S-function module is a variable defined in the system. The flag of one S-function affects the flag of another S-function, resulting in a running error. I would like to ask if there is any way to run multiple S-function modules in one…
LEON
  • 1
  • 1
0
votes
1 answer

Applying Benzecrì correction with FactoMiner

I have a dataset like the one below (with qualitative variable) and I need to apply Benzecrì correction on the dataframe that i will use for the MCA or on the function res.mca, gender Income Male from 10-15 Female from…
0
votes
0 answers

Doing MCA with prince package but inertia values seem incorrect

mca_cols = df.select_dtypes(['category']).columns # instantiate MCA class mca = prince.MCA(n_components = 3) # get principal components mca = mca.fit(df[mca_cols]) mca.explained_inertia_ mca.total_inertia_ I am attempting to do MCA with…
0
votes
0 answers

How to use cronbach alpha to check the internal validity of the first dimension?

I have this example dataset that I applied MCA as follows library("FactoMineR") library("factoextra") data(poison) poison.active <- poison[1:55, 5:15] res.mca <- MCA(poison.active, graph = FALSE) The graph I want to use cronbach alpha to check…
Anas116
  • 797
  • 2
  • 9
0
votes
0 answers

What is the equivalent of e(sample) from Stata in R?

I'm trying to replicate some functions from Stata in R, but I'm really really stuck with the e(sample) function after doing a multiple correspondence analysis (mca). In Stata the code is this: clear set obs 10 gen var1 = cond(_n <= 2,…
komh13
  • 1
  • 1
0
votes
0 answers

MCA with a dataset larger than RAM capacity

I'm currently trying to process an MCA on a dataset of 100'572 x 52. However, I receive the message : Error: cannot allocate vector of size 37.7 Gb Before buying some new RAM (I've 2x8GB of RAM and I'm working on Windows 11), I wanted to try to…
Max_Wlt
  • 3
  • 1
0
votes
0 answers

MCA : how to assign colors and shapes to variables categories based on their variables?

I have this data frame df <- data.frame(subjects = 12:23, Why_are_you_not_happy = c(1,2,"1,2,5",5,1,2,"3,4",3,2,"1,5",3,4), why_are_you_sad = …
Anas116
  • 797
  • 2
  • 9
0
votes
0 answers

MCA : How to add colors to individuals based on a series of groups of numbers?

I have this data frame df <- data.frame(subjects = 12:23, Why_are_you_not_happy = c(1,2,"1,2,5",5,1,2,"3,4",3,2,"1,5",3,4), why_are_you_sad = …
Anas116
  • 797
  • 2
  • 9
0
votes
0 answers

MCA plot in Python - Prince packages - ERROR

I am trying to replicate the tutorial found in the Prince Github Repository and plot a 2D MCA plot in Python with my data frame. However, when I run the plot command, I receive the following error: module 'prince' has no attribute 'MCA' df.columns =…
1
2