I have 9 variables (v1 - v9) with binary responses coded as yes = 1 no =2.
I want to replace all he values of no to 0 for all variables at once.
Can anyone help me with the codes.
Related Posts with Replacing values of multiple variables at once
Reading fixed-format text files into STATAHi everyone, I want to read multiple fixed format-text files for multiple years into Stata. I have …
Generating missing observations with the next available observationHello, here is a small part of my dataset. The full dataset is about 50million observations: You ca…
Putdocx decimal issueHello all: I wanted to get the median, and IQR numbers to show only 1 decimal but I am seeing 10. Al…
Loop for xtline with graph combine Stata codeDear all, I want to plot calories for the each panel id over the year. Here I have written the loop …
Speed Up StataHello How we can speed up the Stata calculations please …
Subscribe to:
Post Comments (Atom)
0 Response to Replacing values of multiple variables at once
Post a Comment