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?
generating multiple variables using multiple combinations of different variablesHi all, I have two sets of variables "within5km within10km within20km" and "less2plus 7 less2plus14 …
Merge variables do not uniquely identify observations in the using dataDear Statalist users, I tried to merge two panel datasets with the following command: Code: merge …
How to create dummy variables from two variables?Hi, I am trying to study intergenerational mobility in India by using the Indian Human Development …
How can I use acfest to estimate a translog TFP?Dear statalists: I want to use acfest to estimate TFP,but my production function is a translog-form,…
anova controlled by cognitive levelHi to everybody Is it correct, to control, anova FOR cognitive level (continuos variables) the follo…
Subscribe to:
Post Comments (Atom)
0 Response to if loops?
Post a Comment