Hello!
I'm a PhD student and relatively new to Stata. I have medicaid data, and I am assessing for overexposure to certain medications. I need to create variables for expected 90th, 95th, and 97th growth curve weights based on the child's age in months. I could do this with a series of -replace...if- statements, but I'm wondering if there is a less time consuming way to do this. I think an if loop would help me, but I can't figure out how to do this. Can anyone help?
Related Posts with if loops?
Interpretation of probit post-estimation testHi Statalisters, I have a question about interpreting post-estimation tests in Stata. Suppose I est…
Help! How do I use the command collapse? Hi, I have a question about an exercise we did in my econometrics class. I have this database of te…
changing numeric string to numeric variable where e5 next to a number means 10^5I have a string variable of the type show below, where 63e5 represents 6300000. How do I change it 6…
optimize the function with inequality constraintsI want to optimize the function with inequality constraints in Stata-mata, how should I do it. …
Putdocx and loopingDear list, I have three variables called Sex (coded as male/female), HTN (yes/no) and Cancer (yes/n…
Subscribe to:
Post Comments (Atom)
0 Response to if loops?
Post a Comment