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?