Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: weighting item specific (CPI) histograms


From   <Samu.Kurri@bof.fi>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: weighting item specific (CPI) histograms
Date   Tue, 28 Mar 2006 12:37:03 +0300

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/



© Copyright 1996–2020 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index