Displaying 1 result from an estimated 1 matches for "npertran".
Did you mean:
npertrans
2009 Mar 09
1
Zero distance error in corSpatial - correlation structure using lme
...s per sample and the coordinates are the same for
the same sample. This is demonstrated below using the coordinates STX2
and STY2, which are the same for a single transect. How can I properly
specify this structure in Variogram() and corSpatial()?
library(nlme)
set.seed(1001)
ntrans <- 30
npertrans <- 5
ntot <- ntrans*npertrans
STX1<-runif(ntot, min=16.0921, max=16.4823)
STY1<-runif(ntot, min=1.9812, max=2.3932)
STX2<-rep(runif(ntrans, min=16.0921, max=16.4823), each=npertrans)
STY2<-rep(runif(ntrans, min=1.9812, max=2.3932), each=npertrans)
site<-rep(c(1,2,3), each=ntot...