Hi,
I am trying to automate the "replace" command for a range of values, for example if codkm values are from 1 to 62 and if values are 70, 74, 77
g codkmgr=0
replace codkmgr=1 if codkm .....
Related Posts with Automate replace command for range of value
Bar chart when one category is extremely frequentThis is a question on data visualization in Stata, but also relevant for other software. I have a da…
Customization of Bar GraphI have created a stacked bar graph to look at my main categorical variable which has Yes/No Response…
How to replace any variable's value if meeting certain conditionDear Stata users, In the following data, I want to replace variables d2a1 d2a2 d2a3 to missing 'cau…
Traj Command ErrorI am using MP 14 ver. and was able to use traj. command until a couple of months ago. Now I see the …
Why robust command in panel regression?!!Dear I want to know when and why I can use robust command in Stata for panel regression model?! …
Subscribe to:
Post Comments (Atom)
0 Response to Automate replace command for range of value
Post a Comment