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
Specification of Known Latent Classes using gsem lclassDear StataList, I am using Stata 14 on a Mac OS Yosemite 10.10.5. I am trying to use gsem to weight…
Clustering SE in an Instrumental Variable (IV) regression yields to negative effects compared to "unclustered" IV regression - How's that?Hello today I performed an IV regression with two instruments. Both instruments are indicator vari…
Create new variable with new data in current datasetHi I have seen many posts with similar questions, but not one that I think completely fits my proble…
how to create a categorical dummy from a group of dummy variablesHi everyone, I want to create a categorical dummy called Engagement, which should take its values f…
Weird errorIs there a solution to typing the following in the command line...? . set obs 1000 /*what*/ varlist…
Subscribe to:
Post Comments (Atom)
0 Response to Dividing series of variables through looping
Post a Comment