I have a dataset with 30 variables containing one ICD-code each. I need to identify certain specific codes among these in order to create a new variable indicating whether certain specific codes are present or not (coded as 0 or 1). I've been told that perhaps a "for loop" could work, but I'm not sure how to do this. Any pointers?
Related Posts with For loop
How to create a simple table with my own specifications?Hi, I want to create my own table with column names and observations in stata. I have been searchin…
Histogram with differences in sharesHello, I have the following problem in Stata: I want to construct a histogram showing the differen…
How to recover stored results from e() class?Hello, I am working on mwitch command of Stata. I work in Stata 15. I ran the following: . mswitch …
DataexPlease house, I need a users' guide on dataex, I am using stata 16 SE on window 7. Thanks for your a…
ppml_panel_sg estimator: fixed effectsHi, I am using the ppml_panel_sg estimator for a gravity model with fixed effects (exporter-time, i…
Subscribe to:
Post Comments (Atom)
0 Response to For loop
Post a Comment