Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Using two weights


From   [email protected]
To   [email protected]
Subject   st: Using two weights
Date   Wed, 30 Aug 2006 16:56:13 +0100

Hi

I have a dataset with data for individual firms from different countries.
I would like to weight the data within countries by firm turnover and
across countries by GDP.  I can do this for the average by first collapsing
the data within countries with the turnover weight then over countries with
the GDP weight. ie -

collapse var gdpweight [aw=turnoverweight],by(country)
collapse var[aw=gdpweight]

However, I also need the weighted variance, and perform some
regressions/logits.  Is there a way to create a single weight variable?

Thanks in advance.

Mathew


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index