Hi, I have variables Jan_13 to Mar_21, referring to months January 2013 to March 2021. I need to create new variables containing the results of current month/previous month. Ex. Feb_13_PR = Feb_13/Jan_13.
How can I automate this computation for all months through looping? Thank you.
Related Posts with Dividing series of variables through looping
Finding "new" occurrences in panel dataDear Stata Users, I am trying to identify when an observation is a "new "occurrence in within a pan…
Bivariate and Multiple linear regressionHello guys, I have cross-sectional data and I intend to perform a bivariate (linear) regression and…
Intergrowth 21th neonatal birth weight standard commandHi all I am trying to calculate the proportion of newborns born small-for-gestational age for newbo…
marginal effects after Heckman Probit modelHi all, can anyone recall the command that one can use to estimate the marginal effects after a Heck…
xteprobit convergece failHi, I tried to estimate a probit panel data model with endogenous binary variable using xteprobit. F…
Subscribe to:
Post Comments (Atom)
0 Response to Dividing series of variables through looping
Post a Comment