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?
Clustering standard errorsI have a cross-sectional dataset at the firm level, and my interest variable (RHS) is a country-leve…
How to correctly residualize before running a regressionI am interested in how the performance of a student i on a test changes over the course of the test …
String Variable - Subinstr? Regex?Dear Statalist, I am in the process of cleaning a dataset, in particular standardizing a string vari…
Difference in Differences analysis unbalanced sampleHello :-) I have two large panel data sets of companies that are listed in Europe and the US in the…
Calculate maximum drawdown from asset returns (and not prices)Hi, I would like to calculate the maximum drawdown from asset returns (and not prices). The definit…
Subscribe to:
Post Comments (Atom)
0 Response to if loops?
Post a Comment