# NOT RUN {
library(Distance)
library(dsm)
# load the Gulf of Mexico dolphin data (see ?mexdolphins)
data(mexdolphins)
# fit a detection function and look at the summary
hr.model <- ds(distdata, max(distdata$distance),
key = "hr", adjustment = NULL)
# fit a simple smooth of x and y to counts
mod1 <- dsm(count~s(x,y)+s(depth), hr.model, segdata, obsdata)
# visualise concurvity using the "estimate" metric
vis.concurvity(mod1)
# }
Run the code above in your browser using DataLab