Displaying 2 results from an estimated 2 matches for "reg11".
Did you mean:
reg1
2012 Sep 27
1
Package ‘orcutt’ bug?
...ave used the package 'orcutt' ?
I find that it can not work smoothly in a single variable regression. I use the example following, it function very well.
But when I regress "cons" on "price" (use the "reg1<-lm(cons~price+income+temp)") , then use "reg11<-cochrane.orcutt(reg1)
". There is an error message “Error in X[, -1] %*% regCO$coeff[-1] : non-conformable arguments”.
Is this a bug for this function?
> price<-c( 0.27, 0.28, 0.28, 0.28, 0.27, 0.26, 0.28 ,0.27 ,0.26 ,0.28, 0.28 ,0.27, 0.27, 0.29, 0.28,0.29, 0.28,...
2011 Sep 20
3
Problem with legend
HI,
This code is part of a code I used to do a linear regression:
>points(var1~var2,data=Regress,pch=21,bg="grey")
>reg11<-lm(var1~var2,data=Regress)
>abline(lm(var1~var2,data=Regress),lty=2,lwd=2,col="grey")
>legend("topleft",legend=
>c("NDII from composite",
>"y= 0.0007x - 0.1156",expression(paste(r^2 == 0.88)),"p-value <0.001"),
>pch=21,
>b...