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
Calculate time variable for survival analysis with panel dataDear Statalisters, I want to study the impact of a migrants language proficiency and best friends …
Fixed effects in bar chartHello everybody, I am trying to find out if there is a relationship between business tax increases …
Help with strtrim 2Hello, I am new to Stata and I am having the same problem as Alyssa Beavers mentioned in her post "…
SEM: estimating curvilinear effectsHello, I need some advice on whether what I want to do is nonsense because I didn't find previous e…
Extracting parts of a string for -rename-Hi all, I'm running into a problem I don't understand. I have a bunch of variables named of the for…
Subscribe to:
Post Comments (Atom)
0 Response to Weighted summary statistics and outreg2
Post a Comment