楼主: 阿璇2016
7492 7

[数据管理求助] stata中@什么意思 [推广有奖]

  • 0关注
  • 0粉丝

硕士生

71%

还不是VIP/贵宾

-

威望
0
论坛币
15 个
通用积分
23.1779
学术水平
2 点
热心指数
2 点
信用等级
2 点
经验
2159 点
帖子
115
精华
0
在线时间
155 小时
注册时间
2016-1-11
最后登录
2019-10-10

楼主
阿璇2016 发表于 2016-8-8 13:55:44 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
                stata里面,*代表任意一个字符,@键代表什么呢?怎么用。。没查到,哪位大神指导一下,万分感谢
二维码

扫码加我 拉你入群

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

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

关键词:Stata tata 万分感谢

沙发
夏目贵志 发表于 2016-8-9 10:46:02
好像并没有什么特别的意思
    The * character indicates to match one or more characters.  All variables
    matching the pattern are returned.

    The ~ character also indicates to match one or more characters, but unlike
    *, only one variable is allowed to match.  If more than one variable
    matches, an error message is presented.

    The ? character matches one character.  All variables matching the pattern
    are returned.

    The - character indicates that all variables in the dataset, starting with
    the variable to the left of the - and ending with the variable to the
    right of the - are to be returned.
help varlist

藤椅
阿璇2016 发表于 2016-8-11 10:51:08
谢谢亲。我看到一个语句 foreach i of varlist var@ue ,估计@代表的一个字符串。

板凳
夏目贵志 发表于 2016-8-11 22:10:58
阿璇2016 发表于 2016-8-11 10:51
谢谢亲。我看到一个语句 foreach i of varlist var@ue ,估计@代表的一个字符串。
你试了么?我试了并不行诶
  1. . foreach j of varlist m@f {
  2.   2. di "`j'"
  3.   3. }
  4. m ambiguous abbreviation
  5. r(111);
复制代码

报纸
阿璇2016 发表于 2016-8-15 16:38:51
是的,我试了试不行。。我看到的那段程序没存,,,sorry

地板
蓝色 发表于 2016-8-15 19:01:59
reshape  的命令里面是有@的选项的

7
呼呼兔的胡图图 学生认证  发表于 2019-3-7 20:31:00
是的,目前为止我只在 -reshape- 命令中看到过过@ 符号。它的作用简单来说是在将长数据转换为短数据时定义j在新变量名中的位置。举例如下。
  1. use http://www.stata-press.com/data/r13/reshape6, clear
  2. reshape wide inc ue, i(id) j(year)
复制代码

这样的话j 会加在变量inc 和 ue 的末尾。 version_A


如果用@ 定义 j 的位置的话
  1. use http://www.stata-press.com/data/r13/reshape6, clear
  2. reshape wide in@c u@e, i(id) j(year)
复制代码
version_B
会出现这样的结果。


8
0931906684 发表于 2020-9-13 09:03:25
egen中rcount函数也有。

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

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