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
Multicollinearity, VIF and interactionHello I have seen many posts (questions and responses) related to multicollinearity, VIF and interac…
Outreg2 Questions relatd to the regression constant term, Missing R squared, and having Multiple tables in one docHi, Code: xtivreg ChgLCon (L.Underperformance_Peer=L2.Financial_Crisis) L.Cost_Income_Ratio L.HH_…
Data Editor - Toolbar QuestionGood morning, Is it possible to put the 'New Do-File Editor' toolbar icon on the Data Editor toolba…
Deriving R2 with mi estimate: mixedHi everyone, I am interested in tabulating the mean level 1 explained variance Array and mean total …
bysort commandHello, I have a clarificatory question about the bysort command. Suppose in my datafile HHID is the …
Subscribe to:
Post Comments (Atom)
0 Response to Generating new variable - Qualtrics export
Post a Comment