楼主: Djjjjjjjjjjj
2014 5

[stata资源分享] 能分享一下forvalue命令安装包吗? [推广有奖]

  • 0关注
  • 0粉丝

高中生

17%

还不是VIP/贵宾

-

威望
0
论坛币
8 个
通用积分
0.0000
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
63 点
帖子
3
精华
0
在线时间
43 小时
注册时间
2020-10-27
最后登录
2023-10-30

楼主
Djjjjjjjjjjj 学生认证  发表于 2021-8-24 18:33:03 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
求助!哪位同学能分享一下stata里面forvalue安装包?实在找不到安装路径,万分感谢!!!!
二维码

扫码加我 拉你入群

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

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

关键词:forvalue value forv 分享一下 alue

沙发
wdlbcj 学生认证  发表于 2021-8-24 19:55:20
这个循环命令是自带的吧?

藤椅
Djjjjjjjjjjj 学生认证  发表于 2021-8-24 21:30:53
base和plus里面都没有,ssc install还没办法下载,能分享一下文件吗?

板凳
zdlspace 学生认证  发表于 2021-8-24 22:27:12
自带的

报纸
蓝色 发表于 2021-8-25 09:46:58
forvalue是Stata自带命令,不需要安装。
直接在命令行窗口执行
help forvalue
就可以看到对应的帮助的内容



[P] forvalues -- Loop over consecutive values
                 (View complete PDF manual entry)

Syntax
        forvalues lname = range {
                Stata commands referring to `lname'
        }

    where range is

                              #1(#d)#2      meaning #1 to #2 in steps of #d     
                              #1/#2         meaning #1 to #2 in steps of 1      
                              #1 #t to #2   meaning #1 to #2 in steps of #t - #1
                              #1 #t :  #2   meaning #1 to #2 in steps of #t - #1

    The loop is executed as long as calculated values of `lname' are < #2, assuming that #d > 0.

    Braces must be specified with forvalues, and

        1. the open brace must appear on the same line as forvalues;
        2. nothing may follow the open brace except, of course, comments; the first command to be executed must appear on a new line;
        3. the close brace must appear on a line by itself.

Description

    forvalues repeatedly sets local macro lname to each element of range and executes the commands enclosed in braces.  The loop is executed zero or more times.
    forvalues is the fastest way to execute a block of code for different numeric values of lname.

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-2-3 13:01