weighted histogram or distribution graph
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
weighted histogram or distribution graph
I'd like to be able to make histograms and other distribution graphs, but my observations have survey weights attached. Advice as to how to make graphs that take the weights into account?
-
- EViews Developer
- Posts: 2672
- Joined: Wed Oct 15, 2008 9:17 am
Re: weighted histogram or distribution graph
"Survey weights" is ambiguous, but I'm assuming you mean frequency weights or the equivalent...
I hate to be the bearer of bad news but while there are many tasks you might want to do where you can easily do things to approximate frequency weights, the distributions calculations are going to be the toughest.
(Note: we traditionally haven't had much call for frequency weighting; the only place where we have frequency weights built-into our routines calculation is in the computation of GLM estimates.)
For now, the easiest thing to do is to expand the series into a vector with the appropriate observations and then construct your graphs from the vector. I'm not sure from the top-of-my-head the best way to do this, but if you'd like to send a workfile with an example, I'll give it some thought. I'm sure that we can come up with something that works reasonably well for now.
I hate to be the bearer of bad news but while there are many tasks you might want to do where you can easily do things to approximate frequency weights, the distributions calculations are going to be the toughest.
(Note: we traditionally haven't had much call for frequency weighting; the only place where we have frequency weights built-into our routines calculation is in the computation of GLM estimates.)
For now, the easiest thing to do is to expand the series into a vector with the appropriate observations and then construct your graphs from the vector. I'm not sure from the top-of-my-head the best way to do this, but if you'd like to send a workfile with an example, I'll give it some thought. I'm sure that we can come up with something that works reasonably well for now.
Who is online
Users browsing this forum: No registered users and 21 guests