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
Plotting non-linear curve when using fixed effect controlsHi Stata users, During my undergraduate dissertation I have been learning how to use Stata. This re…
Calculate Relative Risk with 95% CI from two-way tableHello, i have to variables (sex (male/female) & hypertens) and would like to calculate the 95% C…
Dummy for first duplicateHello, I am trying to figure out how to create a dummy variable for the first duplicates of the yea…
Survey weights in pooled dataHi, I am using for my analysis pooled survey data from five different countries. I would normally u…
Fixed effects model with control groupDear all, I am examining the impact of merger activities on the costs of firms. The purpose is the …
Subscribe to:
Post Comments (Atom)
0 Response to Weighted summary statistics and outreg2
Post a Comment