Hi All,
I used a 500m line transect to survey birds.
I am trying to write a similar model as in the "Applied Hierarchical Modelling in Ecology" book, section 8.4 .In particular I was trying to account for sampling area in the model.
In the book it has the following code (pg433):
covs <- issj [,c("elevation","forest", "chaparrel")]
area<-pi*300^2/100^2 #area in ha
jayumf
<- unmarkedFrameDS (y=as.matrix(issj[,1:3]), siteCovs=data.frame
(covs, area), dist.breaks= c(0, 100, 200, 300), unitsIn="m",
survey="point")
However, when I try to add area my unmarkedFRAME (below) I get the following error output.
Error in unmarkedFrameDS(y = as.matrix(yDat), siteCovs = data.frame(covs, :
argument "tlength" is missing, with no default
Is this because the example was with point data and with transect data are is calculated based on the transect length?
MY unmarkedFRAME:
covs<- covar
area<- 0.5*0.5 #area in km2
umf <- unmarkedFrameDS(y=as.matrix(yDat), siteCovs=data.frame(covs,area), dist.breaks=c(0, 10, 25, 50, 100, 200, 500), unitsIn="m", survey="line")