weights and n-way tabulation

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

weights and n-way tabulation

Postby startz » Wed Feb 10, 2016 3:41 pm

I have micro data from the American Community Survey (ACS). Each observation has a weight attached that tells how many people in the population that person represents. Is there a way to do an n-way (or 1-way) tabulation accounting for the weights?

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: weights and n-way tabulation

Postby EViews Glenn » Wed Feb 10, 2016 4:13 pm

We have frequency weights built into very few core operations (sorry), but you can often use the by-stats to do what you want. In this case, something like

Code: Select all

series o = @sumsby(freqwgts, byvar)
will get you close. If you let us know what you want to do with the results we might be able to get closer.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest