Linetransect

33 views
Skip to first unread message

Ias S

unread,
Jun 22, 2016, 5:04:04 AM6/22/16
to unmarked
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")



Jeffrey Royle

unread,
Jun 22, 2016, 8:11:17 AM6/22/16
to unma...@googlegroups.com
I believe this error message is just saying that you need to specify the transect length in your call to unmarkedFrameDS, since you indicated that it was type "line".
i.e., tlength is a required argument.
regards
andy


--
You received this message because you are subscribed to the Google Groups "unmarked" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unmarked+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages