楼主: victorliou
2492 2

[数据管理求助] 请问这个命令为什么不能替换部分数据呢? [推广有奖]

  • 8关注
  • 5粉丝

副教授

9%

还不是VIP/贵宾

-

威望
0
论坛币
27629 个
通用积分
18.7796
学术水平
11 点
热心指数
6 点
信用等级
10 点
经验
15269 点
帖子
562
精华
0
在线时间
545 小时
注册时间
2005-9-21
最后登录
2024-5-4

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
请问这个命令为什么不能替换部分数据呢?
replace K=k/1.011     if year==2000

二维码

扫码加我 拉你入群

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

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

关键词:部分数据 replace place year LAC replace

沙发
SpencerMeng 在职认证  发表于 2015-5-31 08:40:21 |只看作者 |坛友微信交流群
错误提示是什么?

提供部分数据

使用道具

藤椅
victorliou 发表于 2015-5-31 09:20:59 |只看作者 |坛友微信交流群

search for r(198)                                                                                                                                                       (manual:  [R] search)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

        Keywords:  r(198)
          Search:  (1) Official help files, FAQs, Examples, SJs, and STBs


Search of official help files, FAQs, Examples, SJs, and STBs

[P]     error . . . . . . . . . . . . . . . . . . . . . . . .  Return code 198
        invalid syntax;
        option __________ incorrectly specified;
        option __________ not allowed;
        __________ invalid;
        range invalid;
        __________ invalid obs no;
        invalid filename;
        __________ invalid varname;
        __________ invalid name;
        multiple by's not allowed;
        __________ found where number expected;
        on or off required;
        All items in this list indicate invalid syntax.  These errors
        are often, but not always, due to typographical errors.  Stata
        attempts to provide you with as much information as it can.
        Review the syntax diagram for the designated command.
        In giving the message "invalid syntax", Stata is not helpful.
        Errors in specifying expressions often result in this message.

使用道具

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

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

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

GMT+8, 2024-5-21 15:16