Hi. im trying to replace observations of a string variable from another string variable (Both the string variable contains data from multi select questions. Even though both the variables are string i get a message 0 real changes made.
The code im trying to run is replace var1 = var2 if var1 == "."
The data looks like below,
var 1
1 2 3
.
6 2 1
.
var 2
.
4 5 6
.
4 2 1
I would want a variable that looks like,
var1
1 2 3
4 5 6
6 2 1
4 2 1
Related Posts with Replacing String variables with another string variable. (String variables contain data from multi select questions)
How to show the unique value of a characteristic variable in panel data?I am having a panel data with the unit is firms in 65 countries around the world with the time serie…
Outreg2 Not WorkingHi there! I have been using the following codes. Code: reg y x1 x2 x3 x4, r Outreg2 using myreg.doc…
Counting readmission rate from the index dateI have the below data fields. How to count the number of admissions pre 30 days and post 30 days fro…
High R-square in ppmlHi statalist, I would like to clarify few things about using ppml on gravity data. 1. I'm trying t…
Suest and r-squared?Hi, Does anybody know if there is an option to show the r-squared with suest? And if not, is there …
Subscribe to:
Post Comments (Atom)
0 Response to Replacing String variables with another string variable. (String variables contain data from multi select questions)
Post a Comment