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
Lagged variables of daily dataHi, I have a dataset of stock returns, with daily returns (panel). I have successfully created runn…
Simple info on combomarginsplotDear Stata users, I would like to know whether there is an option of combomarginsplot that allows m…
New version of wridit on SSCThanks as always to Kit Baum, a new version of the wridit package is now available for download from…
spatial econometricsHi everyone Someone knows how to run the LMlambda, LMlambda ROBUST LMrho LMrho ROBUST ? What is co…
Reshape to Long-Firm Year Panel - Data in Multiple excel files and multiple worksheetsHi, I'm quite new to Stata so I am in a bit of a pickle. I need to get a long format firm-year pane…
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