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
desperately in need of helping with exporting sum stats tableI am desperately looking for the solution on exporting the summary stats tables. I typed commands as…
moderation with quantile regressionDear all i hope you are doing good i'm working on my research paper and i want to try the moderate…
dyndoc with table, statistic() errorHello Stata Corp. While trying out the new collect and table commands in Stata 17 I discovered a bu…
Removing Outliers Survey in Stata (For variables time)Hi guys, Appreciate any help. Basically I will want to remove outliers on certain criteria of (time …
Mean of frequency from tabHello, i'm using Stata 16. I am trying to calculate the mean of the frequency values (second column…
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