楼主: zengyongHUST
880 0

[回归分析求助] What is analytical weight in stata? [推广有奖]

  • 1关注
  • 0粉丝

大专生

65%

还不是VIP/贵宾

-

威望
0
论坛币
309 个
通用积分
0.1697
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
195 点
帖子
12
精华
0
在线时间
91 小时
注册时间
2015-12-12
最后登录
2022-5-2

楼主
zengyongHUST 发表于 2016-12-20 14:33:02 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
Clarification on analytic weights with linear regression

A popular request on the help line is to describe the effect of specifying [aweight=exp] with regress in terms of transformation of the dependent and independent variables. The mechanical answer is that typing

        . regress y x_1 x_2 [aweight=n]

is equivalent to estimating the model:


This regression will reproduce the coefficients and covariance matrix produced by the aweighted regression. The mean square errors (estimate of the variance of the residuals) will, however, be different. The transformed regression reports , an estimate of Var(). Theaweighted regression reports , an estimate of Var(), where N is the number of observations. Thus,


The logic for this adjustment is as follows: Consider the model:


Assume that, were this model estimated on individuals, Var(u)=, a constant. Assume that individual data are not available; what is available are averages , for j = 1,...,N, and that each average is calculated over observations. Then it is still true that


where is the average of mean 0, variance deviates, and so has variance . Thus, multiplying through by produces


and Var()=. The mean square error reported by estimating this transformed regression is an estimate of . Alternatively, the coefficients and covariance matrix could be obtained by aweighted regress. The only difference would be in the reported mean square error, which per equation 1 is . On average, each observation in the data reflects the averages calculated over individuals, and thus this reported mean square error is the average variance of an observation in the dataset. One can retrieve the estimate of by multiplying the reported mean square error by .

More generally, aweights are used to solve general heteroskedasticity problems. In these cases, one has the model


and the variance of is thought to be proportional to . If the variance is proportional to , it is also proportional to , where is any positive constant. Not quite arbitrarily, but with no loss of generality, let us choose , the average value of the inverse of . We can then write Var() = , where k is the constant of proportionality that is no longer a function of the scale of the weights.

Dividing this regression through by the ,


produces a model with Var() = , which is the constant part of Var(). Notice in particular that this variance is a function of , the average of the reciprocal weights. If the weights are scaled arbitrarily, then so is this variance.

We can also estimate this model by typing:

        . regress y x_1 x_2 [aweight=1/a]

This command will produce the same estimates of the coefficients and covariance matrix; the reported mean square error is, per equation 1,. This variance is independent of the scale of .


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Analytical Analytic Weight Analy weigh equivalent describe produced request popular

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-29 16:54