你好!我已经在R中安装了lqmm,路径设置也是对的,在我运行xtqreg命令时确实存在bug,而且不知道如何解决,当我用stata13时,总是出现以下的错误:
help xtqreg
. global Rterm_path "C:\Program Files\R\R-3.1.3\bin\i386\Rterm.exe"
. use http://www.imm.ki.se/biostatistics/data/wtloss, clear
. gen inter = month*prog
. reshape long y, i(id) j(month)
(note: j = 0 3 6 9)
Data wide -> long
-----------------------------------------------------------------------------
Number of obs. 60 -> 240
Number of variables 6 -> 4
j variable (4 values) -> month
xij variables:
y0 y3 ... y9 -> y
-----------------------------------------------------------------------------
gen inter = month*prog
. xtset id month
panel variable: id (strongly balanced)
time variable: month, 0 to 9, but with gaps
delta: 1 unit
. xtqreg y prog month inter
Please check if the R.exe directory is C:\Program Files\R\R-3.1.3\bin\i386\Rterm.exe and R version
> is 3.1.3
If the directory is not correct use option pathr.
If only the version is not correct use option version.
If both the directory and the version are correct,
something went wrong during the run of the R script.
r(198);
请帮忙看一下如何解决?谢谢!