Displaying 1 result from an estimated 1 matches for "trajsize".
Did you mean:
  tabsize
  
2012 Jun 09
2
Help with permutation function from Turner et al. 2010 (Ecology)
...s of residuals are now randomized
    y.rand<-yhat+res.p
    
    lm.new<-lm(y.rand~o*g,x=T,model=T) 
    ls<-data.frame(expand.grid(o=levels(o),g=levels(g))) 
    ls[]<-lapply(ls, factor)
    means.r<-predict(lm.new,ls)
    
    traj.r<-arrayspecs(means.r,g,o)
    traj.size.r<-trajsize(traj.r)
    traj.dir.r<-trajorient(traj.r,ang.cor=T)
    traj.shape.r<-trajshape(traj.r)
    result<-traj.result(traj.size.r,traj.dir.r,traj.shape.r)
    p.table<-rbind(p.table,c(i,result))
  }
  p.table
}
But when I try to execute the function the rows in the output matrix repeat th...