Displaying 1 result from an estimated 1 matches for "stx2".
Did you mean:
str2
2009 Mar 09
1
Zero distance error in corSpatial - correlation structure using lme
...- which are transects
sampled several times - have different coordinates (STX1 and STY1),
everything seems to work fine. But in my actual data set, there are
multiple observations 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.98...