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
how to surpress the "graphs by group" when graphing histogram with by optionI do not want to display "graphs by group", Here is the code: Code: * Example generated by -dataex…
Seasonally adjusted GDPI guess this is a simple question. How to get the seasonally adjusted GDP continuously compounded g…
METAN command on log-transformed odds ratiosDear Statalist Member, I have several Effect Sizes (ES) with accompanied 95% Confidence Intervals (…
Plot confidence interval for medianI'd appreciate if anyone could help me with this one. I need to plot median and percentile confidenc…
How to filter data using keywordsHi everyone, I am a novice user of STATA. I have collected execucomp data on excel, where manager d…
Subscribe to:
Post Comments (Atom)
0 Response to Generating new variable - Qualtrics export
Post a Comment