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?
Economic student that needs some help with date and year with panel dataHi everyone and happy thanksgiving! Its probably simple stuff but I'm having some difficulties so s…
The overall age-standardised rate (ASR) with 95% CIHello, I used the STATA code to calculate age-standardised rate (ASR), but it did not give me the o…
ARDL - SR and LR ElasticitiesDear Stata Users, I have been trying to run an ARDL specification to get short and long-run price e…
Conceptual/statistical question about supop().Hi Everyone, I am using several datasets that can be svyset. In each of these, I am interested in o…
Survival Analysis at specific time point, ltable vs. sts test logrankI am examining the association between chemotherapy and survival among octogenarians with pancreatic…
Subscribe to:
Post Comments (Atom)
0 Response to if loops?
Post a Comment