Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: a question on the weighted regression

From   Toyoto Iwata <>
Subject   st: a question on the weighted regression
Date   Tue, 03 Aug 2004 17:29:55 +0900

Antonio would have meant to post this mail to the Statalist,
so I send here.

> "Antonio Rodrigues Andres" <>
> I have  a panel data set for 15 countries over the period 1970-1998. My
> dependent variable is the mortality rate. Since the variance of ln(d/p)
> is inversely proportional to p (population), this implies
> heteroskedasticity. To correct for it, observations should be weighted
> by the square root of the denominator of the mortality rate, i.e.,
> population. In Stata, 
> i am using 
> xi: regress y x1 x2 i.year [w=1/pop], 
> Is that correct? I might also use the robust option
> I would appreciate your answer
> Antonio

*   For searches and help try:

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