全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1275 1
2019-02-24
input str10 Accper
"12/31/2012"
"12/31/2014"
"12/31/2010"
"12/31/2016"
"12/31/2011"
"12/31/2013"
"12/31/2015"
"12/31/2009"
"12/31/2010"
"12/31/2013"
"12/31/2014"
"12/31/2011"
"12/31/2015"
--more--

gen year=. replace year=1 if Accper=="12/31/2009" replace ye
> ar=2 if Accper=="12/31/2010" replace year=3 if Accper=="12/3
> 1/2011" replace year=4 if Accper=="12/31/2012" replace year=
> 5 if Accper=="12/31/2013" replace year=6 if Accper=="12/31/2
> 014" replace year=7 if Accper=="12/31/2015" replace year=8 i
> f Accper=="12/31/2016"  
invalid 'replace'
r(198);


二维码

扫码加我 拉你入群

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

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

全部回复
2019-2-24 10:00:06
用 dataex 发资料要完整(特别是有关"时间"之变量),例如
复制代码
请将 copy starting from the next line 与 copy up to and including the previous line 中之部分 show 出来。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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