小弟初学R软件,在做线性运算时,有这样一个程序:
s_fgls1=lm(log(income)~auxreg=lm(log(residuals(s_lm)^2)~exper+edu+labor+d1+d2,data=s),weights=1/exp(fitted(auxreg)),data=s)
运行后出现错误,错误如下:
错误: 意外的'='在"s_fgls1=lm(log(income)~auxreg="里
请问好心的高手们,我的错误是什么?请指教!十分感谢!