I am generating a new variable based on existing variables in my dataset which were exported from Qualtrics. Using the following code:
gen X = .
replace X = 1 if Y == 1
The result is showing 0 changes made however there should be 64 changes. I've never come across this problem before, I wonder if it has something to do with the type of variable. Y (exported from Qualtrics) is double and X (that I generated) is a float.
replace X = 1 if Y== 1
(0 real changes made)
It only seems to be this one variable, all new variables have work. Anyone come across this before?
Related Posts with Generating new variable - Qualtrics export
reshape commandhi, I need to reshape a huge data set wide to long (2557 binary variables and 1.6 million observatio…
Finite mixture model vs. Latent class modelHi scholars, Would you please explain the difference between Finite mixture model and Latent class …
Interpretation of the margins plot with categorical variablesHello every one, Iam having trouble interpreting a margins plot and the margins output as well whiil…
Generating unique ID variable from numeric and categorical variablesHello all, I am new to forum and I have a question about generating new IDs. Thanks for your patienc…
Hosmer–Lemeshow test for large data setsHosmer–Lemeshow test for large data sets gives low p value despite perfectly fitting model. Increasi…
Subscribe to:
Post Comments (Atom)
0 Response to Generating new variable - Qualtrics export
Post a Comment