g lnxij=log(xij)
g lnGDP1=log(GDP1)
g lnGDP2=log(GDP2)
g lnair1=log(air1)
g lnair2=log(air2)
g lnContainer1=log(Container1)
g lnContainer2=log(Container2)
g lnRail1=log(Rail1)
g lnRail2=log(Rail2)
我用以上代码取对数,为什么lnGDP2能够生成,lnGDP1却没法生成,其他几个数据也是相同的情况,一些可以一些不行,但代码完全是正确的啊,数据类型是double或float
现在的碰到地困难是,粘贴的country一栏是国家名字,显示的是红色字体,查了下是字符型,,,但我在设置面板数据的两个维度时,country这一栏出现了这样的错误.
xtset country year
varlist: country: string variable not allowed
r(109);
难道把国家也设置成数值型?
现在的碰到地困难是,粘贴的country一栏是国家名字,显示的是红色字体,查了下是字符型,,,但我在设置面板数据的两个维度时,country这一栏出现了这样的错误.
xtset country year
varlist: country: string variable not allowed
r(109);
难道把国家也设置成数值型?
现在的碰到地困难是,粘贴的country一栏是国家名字,显示的是红色字体,查了下是字符型,,,但我在设置面板数据的两个维度时,country这一栏出现了这样的错误.
xtset country year
varlist: country: string variable not allowed
r(109);
难道把国家也设置成数值型?