[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Using two weights
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)
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.
* For searches and help try: