Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a cluster variable in the database #21

Open
amalia-perez opened this issue Mar 3, 2021 · 0 comments
Open

How to create a cluster variable in the database #21

amalia-perez opened this issue Mar 3, 2021 · 0 comments

Comments

@amalia-perez
Copy link

Dear all,
I hope you are well and safe.
I would like to ask. I would like to create a variable in the database with the cluster done. I create a cluster with 2 variables and 4 profiles and to conduct multinomial regression I need the variable in the database. I'm a beginner user, thus, sorry for may ask something odd.

database = datafinal
Variables = Distracaoevitada and BETNegativas
Profiles = 4

My code was:
m2 <- create_profiles_cluster(datafinal, Distracaoevitada, BETNegativas, n_profiles = 4)
plot_profiles(m2, to_center = TRUE)
summary (m2) #until here is fine
datafinal['m2']=m2

This last line, it put something in the database, but in fact, the R is just coping the first variable (Distracaoevitada). I don't know what I'm doing wrong and how to fix it.
Thank you very much for any help.
Amalia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant