Dear all,
I have a variable name "village", and wanted to replace the name of village in observations 1, 3, and 5 with "village A" and in 2,4, and 6 with "village B".
How can I use command foreach or forval in stata?
Thanks for your help.
Cheers,
Ris
Related Posts with Replace a value of multiple observations for one variable
Problem implementing twoway parea in v15.1 in Windows - Patterns no longer appearThis is my first post, so please forgive/correct any protocol lapses. I would like to thank the aut…
convergence issues with nlsur (parameters constrained to zero or tending to infinity)Hi all, I am running nlsur estimations and I am experiencing some difficulty in convergence. Out of…
Converting multiple files´ variables to stringI have several .dta files in a folder. For each file, how can I convert all the variables to string?…
teffects nmatchHey Statalist, I need help using the teffects nnmatch - nearest-neighbor matching function in Stata…
Using Boostrap and Simulation to Estimate Correction FactorsI work at a local health department evaluating some of our work in obesity prevention. We are intere…
Subscribe to:
Post Comments (Atom)
0 Response to Replace a value of multiple observations for one variable
Post a Comment