全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
913 2
2023-11-09
各位大佬们,我参考了连玉军老师的Stata:控制变量组合的筛选-tuples (lianxh.cn),但是总是报错为啥呀? 微信图片_20231109214118.png
二维码

扫码加我 拉你入群

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

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

全部回复
2023-11-9 21:48:09
部分命令如下:
tuples $controlVariables
forvalues i = 1/`ntuples' {
        regress $dependentVariable $independentVariable `tuple`i'', r
        replace bOfIndX = _b[$independentVariable] in `i'
        replace seOfIndX = _se[$independentVariable] in `i'
        replace tOfIndX = bOfIndX / seOfIndX in `i'
        replace degreeOfFreedom = e(df_r) in `i'        
        replace tValue = invttail(degreeOfFreedom, $significance) in `i'
        replace rSq = e(r2) in `i'
        replace controlVariableSet = "`tuple`i''" in `i'
}
二维码

扫码加我 拉你入群

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

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

2023-11-13 21:24:31
你的符号要确定是半角,不要全角
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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