Displaying 2 results from an estimated 2 matches for "fit8".
Did you mean:
fit
2006 May 17
1
what does it mean when "lm.gls" says that the weight matrix has wrong dimension?
...on to obtain the
autocovariance of the residuals,
and then constructed a autocovariance matrix, I chose it to be 40x40.
Call this autocovariance matrix B,
I then use the following "lm.gls" function to fit using the above weight
matrix:
But what's wrong with my weight matrix?
> fit8=lm.gls(V1~V2, data=data1, W=B, inverse=TRUE);
Error in lm.gls(V1 ~ V2, data = data1, W = B, inverse = TRUE) :
dim(W) is not correct
[[alternative HTML version deleted]]
2005 Mar 14
1
calling objects in a foreloop
...fit3<-lm(dBA.spp16$sp3.dBA.ha~dBA.spp16$sp2.dBA.ha)
> fit4<-lm(dBA.spp16$sp5.dBA.ha~dBA.spp16$sp4.dBA.ha)
> fit5<-lm(dBA.spp16$sp6.dBA.ha~dBA.spp16$sp4.dBA.ha)
> fit6<-lm(dBA.spp16$sp5.dBA.ha~dBA.spp16$sp6.dBA.ha)
> fit7<-lm(dBA.spp16$sp1.dBA.ha~dBA.spp16$sp4.dBA.ha)
> fit8<-lm(dBA.spp16$sp1.dBA.ha~dBA.spp16$sp5.dBA.ha)
>
> dBA.spp16.fits<-matrix(NA, nrow=8, ncol=5)
> colnames(dBA.spp16.fits)<-c("formula","intercept","slope","R^2","adj.R^2")
>
> for (i in 1:8){
+ dBA.spp16.fits[i,1]<-summary(...