Hi,
I want to write a loop to generate a new variable called savings (income-expenditure) in two separate files. Use sample weights with name wht to calculate its mean in respective files. Then a combined mean of the means. How can we do it via loops?
Any help is appreciated.
Related Posts with Generate a new variable in a loop in different files and calculating the mean
graph x-axis with year and month?Dear All, I use the (ssc install) -synth- command to tun the following regression Code: xtset id da…
Compare similarity of structure (percentage distribution) for one conditionHello guys, I hope someone here can help me with my stata problem. I want to find out if the structu…
Compare betas of two different models while using asdoc and reghefe Code: asdoc reghdfe pm rc l.pm interaction1 l.asse /// l.lev if dummy ==0, absorb(cc industry_year_…
Multiple "lincoms" after "margins" with "at"?Goal: I want to subtract the results of "margins" from a constant. My approach: Use margins with "a…
Estimating ARDL with Structural Break Hi.... My data is stored in a panel data format. I want to estimate the ARDL with a structural brea…
Subscribe to:
Post Comments (Atom)
0 Response to Generate a new variable in a loop in different files and calculating the mean
Post a Comment