Dear all,
Is there a way to calculate a weighted (CPI) histogram with STATA? I
have a very large micro data set and I would like to sum up the
histograms of price changes in each item groups (eg. gasoline, bananas,
computers, cell phone calls) to a single weighted CPI histogram. So what
I need is a command (or a macro or program) that calculates the item
specific histograms and then weights them up with given item weights.
Or can I save the histograms as tables (data) (instead of pictures)?
That would allow me to export them and do the weighting in eg. Excel.
I am familiar with the fweights option on histogram command, but I think
it does not suit for my purposes.
Thanks,
Samu Kurri
Bank of Finland
This mail has been checked for viruses
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/