楼主: bbs0805
29224 12

[一般统计问题] [求助] Stata中的权重问题 [推广有奖]

  • 0关注
  • 47粉丝

已卖:4669份资源

学科带头人

72%

还不是VIP/贵宾

-

威望
0
论坛币
5846936 个
通用积分
534.1892
学术水平
138 点
热心指数
155 点
信用等级
115 点
经验
73379 点
帖子
931
精华
2
在线时间
3882 小时
注册时间
2005-1-1
最后登录
2025-10-21

楼主
bbs0805 发表于 2007-10-2 08:02:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
<P>在应用Stata的过程中,我有一个疑惑:权重的选择。</P>
<P>          Stata中有四种权数,他们分别是fweight、aweight、pweight和iweight。我在赋权时只用[fweight=*]、[aweigh=*]、[pweigh=*]t和[iweight=*],从来不敢用[weight=*]的形式。我想请教各位的是:[weight=*]与上面四种形式有何区别和联系?或者说,分别在什么条件下,[weight=*]各与上面四种形式之一等价?例如在对频数分布数据进行简单描述统计时,应采用正确的[fweight=*]形式,此时[weight=*]与[aweight=*]等同,但不正确。能用数据举例更好!</P>
<P>         先谢了!</P>
二维码

扫码加我 拉你入群

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

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

关键词:Stata tata fweight Weight weigh

沙发
蓝色 发表于 2007-10-2 11:24:00

stata user guide 里面有一部分是介绍权重的问题的,你可以看看

还有一个方法就是你可以自己建立一个简单的数据,在excel里面根据统计学里面的讲到的一些方法进行计算,然后把你的数据放到stata里面也同样的计算,看看结果你就明白了。

毕竟我们的资料太少,只能通过试验来搞清楚一些命令的含义了。

已有 1 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
SpencerMeng + 20 + 1 + 1 + 1 精彩帖子

总评分: 论坛币 + 20  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

藤椅
lyrasover 发表于 2007-10-2 12:07:00

斑竹说得很对啊

板凳
bbs0805 发表于 2007-10-2 17:04:00
以下是引用蓝色在2007-10-2 11:24:00的发言:

stata user guide 里面有一部分是介绍权重的问题的,你可以看看

还有一个方法就是你可以自己建立一个简单的数据,在excel里面根据统计学里面的讲到的一些方法进行计算,然后把你的数据放到stata里面也同样的计算,看看结果你就明白了。

毕竟我们的资料太少,只能通过试验来搞清楚一些命令的含义了。

多谢蓝色!!

过几天我试试看!

报纸
liudi66899 发表于 2012-4-30 09:23:43
请问楼主,如果我有一列数据是我给定的权重,应该用哪种啊?

地板
dongyanmei 发表于 2014-4-13 10:09:20
aweight——分析权数,用在加权最小二乘回归以及类似的估计程序中
fweight_频数权数,用以对重复观测案例计数。频数权数必须是整数
iweight_重要性权数,但是“重要性”由用户自己定义
pweight_概率或抽样权数,等于观测案例根据抽样策略被选中的概率倒数
已有 3 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
zhoujielunli + 1 + 1 + 1 精彩帖子
dxystata + 100 + 5 + 1 好的意见建议
admin_kefu + 20 热心帮助其他会员

总评分: 经验 + 100  论坛币 + 25  学术水平 + 1  热心指数 + 2  信用等级 + 1   查看全部评分

7
黄剑焜 发表于 2015-4-29 20:59:58
厉害,受教了

8
我叫辉太郎 学生认证  发表于 2015-5-18 20:55:31
dongyanmei 发表于 2014-4-13 10:09
aweight——分析权数,用在加权最小二乘回归以及类似的估计程序中
fweight_频数权数,用以对重复观测案例计 ...
那请问[weight=*]是什么意思?

9
abrahamz 发表于 2017-12-22 14:09:17
我叫辉太郎 发表于 2015-5-18 20:55
那请问[weight=*]是什么意思?
我也想问这个到底怎么用。。。

10
lxfkxkr 在职认证  发表于 2018-1-6 02:28:44
Stata understands four kinds of weights:
1. fweights, or frequency weights, indicate duplicated observations. fweights are always integers. If the fweight associated with an observation is 5, that means there are really 5 such observations, each identical.  数据集中该样本被重复观测的次数
2. pweights, or sampling weights, denote the inverse of the probability that this observation is included in the sample because of the sampling design. A pweight of 100, for instance, indicates that this observation is representative of 100 subjects in the underlying population. 数据集中,该样本所能够代表的潜在分总体(sub-population)数。
The scale of these weights does not matter in terms of estimated parameters and standard errors, except when estimating totals and computing finite-population corrections with the svy commands; see [SVY] survey.
3. aweights, or analytic weights, are inversely proportional to the variance of an observation; that is, the variance of the jth observation is assumed to be σ 2/wj , where wj are the weights. Typically, the observations represent averages, and the weights are the number of elements that gave rise to the average. For most Stata commands, the recorded scale of aweights is irrelevant; Stata internally rescales them to sum to N, the number of observations in your data, when it uses them. 数据集中,该样本来源的观测样本数。
4. iweights, or importance weights, indicate the relative “importance” of the observation. They
have no formal statistical definition; this is a catch-all category. Any command that supports
iweights will define how they are treated. They are usually intended for use by programmers
who want to produce a certain computation. 数据集中,该样本的重要程度。
已有 1 人评分经验 热心指数 收起 理由
dxystata + 100 + 1 好的意见建议

总评分: 经验 + 100  热心指数 + 1   查看全部评分

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

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