I've been unable to create a table that shows the weighted summary statistics of the variable travelling_time, for each country and year of my sample, with the command outreg2. The only syntax with which I don't receive an error message from Stata is this one:
by country year: outreg2 using travelling_summarystat, replace sum(log) keep(travelling_time) label see: sum travelling_time [aw=propwt]
However, based on the results I get, including [aw=propwt] has not had any effect since I have obtained the same results when I didn't include that option. The results are also different from the ones I got with a more simple syntax, that seems to calculate the correctly weighted statistics: by country year:
by country year: sum travelling_time [aw=propwt]
I would appreciate it if you could help me understand where have I made a mistake, and why including [aw=propwt] doesn't seem to have any effect. Thanks!
Related Posts with Weighted summary statistics and outreg2
Smarter way toWhile learning probit, mprobit, logit, mlogit, ivprobit, and cmp like Code: mprobit Y X I realize…
stataWhich stata command do we run to get the very first time a certain patient showed up for a clinic vi…
Help with Threshold regression for Multiple Threshold VariablesHansen's (2000, pp. 587) setting only allows one threshold and one threshold variable. Subsequently,…
use observation as a varlistHi everyone, I am currently struggling with something that I think is easy but i really couldn't fig…
How to add a column of minimum wage information to each country?Dear all: I have 73 countries microdata (n range from1 to 73), where I intend to add a column of mi…
Subscribe to:
Post Comments (Atom)
0 Response to Weighted summary statistics and outreg2
Post a Comment