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
Gregory Hansen mixed resultsHi All, I need some advice. I have performed the Gregory Hansen test for cointegration to check fo…
How to save 1 specific xtreg beta coefficient to use in postestimations?Dear Stata Community members, I would like to ask how I can save one particular beta coefficient af…
Levene’s testDear researchers, I have unbalanced panel data for more than 200 firms for the period that extend fr…
ScatterplotHello, I need to create a figure such as the one below. How can I do it? I'd like to show the correl…
Choosing the best model- Panel data regression analysisHi, I am new in this forum, I read many useful comments related to panel data analysis. I am from fi…
Subscribe to:
Post Comments (Atom)
0 Response to Replace a value of multiple observations for one variable
Post a Comment