全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
6392 10
2014-02-25
如果我想在模型中加入不随时间变动的因素,好像不能直接在indep中加其他变量,不然会报错:Error: number of variables in var1 and indep1 must match.正确方法好像是Example 5(不随时间变动的因素)和Example 6(随时间变动的因素).但是其中为什么要设定矩阵?matrix又是如何设定的?下面是Example 5,Example 6是类似的。

    use http://www.andrew.cmu.edu/user/bjones/traj/data/anag1.dta, clear
    matrix strt = (-4.57, -7, 5.96, -1.38, -20.5, 25.4, -8.0, -4.37, 5.55, -1.52, -1.7, 0, 0, 0, 0, -1.7, 0, 0, 0, 0, -2.5, 0, 0, 0, 0)
    traj, model(zip) var(y*) indep(t*) order(0 2 2 2) risk(lowiq crimpar daring pbeh) start(strt)
    list lowiq - _traj_ProbG4 in 1/6, ab(12)

如果大家想在stata中看一下的话:

net from http://www.andrew.cmu.edu/user/bjones/traj

net install traj, force

help traj



二维码

扫码加我 拉你入群

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

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

全部回复
2014-2-25 18:35:24
kusoft 发表于 2014-2-25 18:23
如果我想在模型中加入不随时间变动的因素,好像不能直接在indep中加其他变量,不然会报错:Error: number o ...
9#60?
二维码

扫码加我 拉你入群

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

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

2021-10-19 09:25:09
楼主用stata下载traj插件有没有报过错啊,我的一直下不下来
二维码

扫码加我 拉你入群

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

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

2021-12-8 11:49:19
young 发表于 2021-10-19 09:25
楼主用stata下载traj插件有没有报过错啊,我的一直下不下来
用这个:
net from https://www.andrew.cmu.edu/user/bjones/traj
net install traj

区别是,http后面要加s
二维码

扫码加我 拉你入群

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

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

2022-4-19 15:23:11
cherie2520 发表于 2021-12-8 11:49
用这个:
net from https://www.andrew.cmu.edu/user/bjones/traj
net install traj
请问楼主我的报错怎么改呀?我用http和https都不行
· net from http://www.andrew.cmu.edu/user/bjones/traj
file http://www.andrew.cmu.edu/user/bjones/traj/stata.toc not found
server says file temporarily redirected to https://www.andrew.cmu.edu/user/bjones/traj/stata.toc


. net from https://www.andrew.cmu.edu/user/bjones/traj
PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed



二维码

扫码加我 拉你入群

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

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

2022-4-19 15:24:20
young 发表于 2021-10-19 09:25
楼主用stata下载traj插件有没有报过错啊,我的一直下不下来
请问你下载下来了吗?我也一直下载不下来
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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