楼主: 阿ken哥
2287 4

[编程问题求助] 在运行Do文件时遇到了难题,求助 [推广有奖]

  • 3关注
  • 0粉丝

本科生

97%

还不是VIP/贵宾

-

威望
0
论坛币
2012 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
68959 点
帖子
91
精华
0
在线时间
118 小时
注册时间
2015-2-18
最后登录
2019-6-21

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
是这样的一个语句:tab  flo_rage_1 [aw=wp] if childage_1<10 & childage_2<10 & twins==1
运行的时候出现了这样的错误:wp not found   
                                                  r(111);
    这是什么意思?求大神解答,谢谢

二维码

扫码加我 拉你入群

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

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

关键词:do文件 dage Age LDA Hil

回帖推荐

wisdommingli 发表于2楼  查看完整内容

wp not found 就是加权变量wp没有被定义。 去掉[aw=wp]这个计算加权frequency的选项,除非特殊目的,一般不用。 aweights, or analytic weights, are weights that are inversely proportional to the variance of an observation; that is, the variance of the jth observation is assumed to be sigma^2/w_j, where w_j are the weights. Typically, the observations represent averages and the weights are the number ...
沙发
wisdommingli 发表于 2016-2-28 21:39:21 |只看作者 |坛友微信交流群
wp not found  就是加权变量wp没有被定义。
去掉[aw=wp]这个计算加权frequency的选项,除非特殊目的,一般不用。

aweights, or analytic weights, are weights that are inversely proportional to the variance of an observation; that is, the variance of the jth observation is assumed to be sigma^2/w_j, where w_j 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.
已有 1 人评分经验 收起 理由
Captain-CUI + 60 热心帮助其他会员

总评分: 经验 + 60   查看全部评分

使用道具

藤椅
阿ken哥 发表于 2016-2-29 17:44:33 |只看作者 |坛友微信交流群
wisdommingli 发表于 2016-2-28 21:39
wp not found  就是加权变量wp没有被定义。
去掉[aw=wp]这个计算加权frequency的选项,除非特殊目的,一般 ...
请问这个加权变量一般是用来干什么的?我是新手,不太懂,谢谢

使用道具

板凳
夏目贵志 发表于 2016-3-1 10:55:18 |只看作者 |坛友微信交流群
阿ken哥 发表于 2016-2-29 17:44
请问这个加权变量一般是用来干什么的?我是新手,不太懂,谢谢
简单的说很多时候就是用来修正样本和总体之间的差别。比如总体有20男10女,但是样本只有1男1女,那么这个时候给样本里男性观测值两倍于女性观测值的权重,样本就能更符合总体。
已有 1 人评分经验 学术水平 热心指数 信用等级 收起 理由
Captain-CUI + 100 + 5 + 5 + 5 热心帮助其他会员

总评分: 经验 + 100  学术水平 + 5  热心指数 + 5  信用等级 + 5   查看全部评分

使用道具

报纸
阿ken哥 发表于 2016-3-3 21:27:49 |只看作者 |坛友微信交流群
夏目贵志 发表于 2016-3-1 10:55
简单的说很多时候就是用来修正样本和总体之间的差别。比如总体有20男10女,但是样本只有1男1女,那么这个 ...
好的,太棒啦!谢谢

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-28 05:27