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
Looping through a list of strings; combining variables within stringsI have a series of household consumption surveys, each for every year, and I want to process each fi…
Looping with both `var' and `i' simultaneouslyHello, I want to loop over my variable list, but also be able to have a number `i' that reflects th…
Return code of data typeHello, I've noticed the codebook or describe commands don't include datatype in the return code lis…
Insert empty row by group conditionallyHi, I have a survey data like this: Code: input id sequence q1 q2 q3 q4 q5 001 1 1 3 2 1 5 001 …
Fixed and random effects WITHOUT using clustered robust standard errors (CRSE)Hi Statalist users. I'm new to this forum and would love to get some help from you guys. I'm worki…
Subscribe to:
Post Comments (Atom)
0 Response to Dividing series of variables through looping
Post a Comment