全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1942 5
2021-08-24
求助!哪位同学能分享一下stata里面forvalue安装包?实在找不到安装路径,万分感谢!!!!
二维码

扫码加我 拉你入群

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

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

全部回复
2021-8-24 19:55:20
这个循环命令是自带的吧?
二维码

扫码加我 拉你入群

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

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

2021-8-24 21:30:53
base和plus里面都没有,ssc install还没办法下载,能分享一下文件吗?
二维码

扫码加我 拉你入群

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

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

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.

二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群