楼主: 万事皆胜意
2319 7

[回归分析求助] Stata invalid name r(198)错误怎么办 [推广有奖]

  • 0关注
  • 0粉丝

学前班

90%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
30 点
帖子
2
精华
0
在线时间
1 小时
注册时间
2023-7-31
最后登录
2024-2-21

楼主
万事皆胜意 发表于 2023-7-31 13:40:54 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

想问问大家 这个为什么会出现r(198)的错误?应该怎么修改呀?求助
forvalue i=1(1)9{
  2. egen 1`i'=sum(p`i'*ln(p`i'))
  3. gen e`i'=-1`i'/ln(93)
  4. gen d`i'=1-e`i'
  5. }
11 invalid name
r(198);


二维码

扫码加我 拉你入群

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

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

关键词:invalid Stata Valid name tata STATA问题 新手发帖

沙发
tgauss 发表于 2023-7-31 14:35:21
变量名不能是数字开头

藤椅
山东经济萌新 学生认证  发表于 2023-8-11 17:26:48
  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.

板凳
fanfan43 发表于 2023-8-24 18:12:53 来自手机
tgauss 发表于 2023-7-31 14:35
变量名不能是数字开头
我这个也不是数字开头,咋也不行哇 image20230824181253.jpg

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

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