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
BOX PLOT WITH INDIVIDUAL OBSERVATION--How to writeHi to everybody. I have to do a boxplot with individual observations using the dataset below: clea…
Variable Construction based on Time StampsDear Statalist, I have a dataset that records the time when staffs successfully pick the products a…
DEA commands: dea vs. teradialbcGood day, Using the dea command produces technical efficiency scores with values b/t 0-1. However, …
filling in missing values for panel dataHi there, I have panel data in which the education variable has missing values. I must use the surr…
Bayestest model not showing posterior probabilitiesDear Stata Users community, I am trying to compare the posterior probabilities of a series of ologi…
Subscribe to:
Post Comments (Atom)
0 Response to Replace a value of multiple observations for one variable
Post a Comment