In addition to the data from the mark recapture over the 6 years, we can look at the data from the Pit Tag array installed in 2023. This is data from just summer 2023 and records a “capture” when a turtle swims close enough to the array. There are test fires that go off each hour in the data set, so when these are removed there were only 56 turtle “captures.” We can look at this data using the same modeling technique as for the mark recapture data set and compare estimates of survival.
library(readr)
Antenna_ch <- read_csv("~/Documents/Math 248/Final Project Data/Antenna ch.csv")
head(Antenna_ch)
We can use the same model, the Cormack Jolly Seber Model, and see the estimates for \(\phi\) and \(p\) it produces. The model assumptions should all be the same, and the ways in which the data set meets the model should be mostly the same. The only difference between the two should be the assumption of equal probability of capture. This is likely violated, but because turtles are swimming out of traps. Different turtles may be more likely to swim in different parts of the pond and therefore more likely to swim past the array. Another assumption of this model is that there is equal spacing between capture events, however with this data set, data is collected continuously so the capture records were based off of the days that captures happened. The data violates the assumption of equal spacing of events still, but this allows us to make a capture history out of the continuously collected data.
The data again had to be reformatted so that there was a capture history for each turtle as a string of 1’s and 0’s. There are 42 turtles that were captured in this data set and each has its own capture history over the 17 days in which turtle captures were seen to span over.
We can make the model with constant \(\phi\) and \(p\) in the same way we did for the other data set.
cjs.modelforAntenna1 <- crm(Antenna_ch)
##
Number of evaluations: 100 -2lnl: 33.69177424
cjs.modelforAntenna1 <- cjs.hessian(cjs.modelforAntenna1)
predict(cjs.modelforAntenna1,
newdata = data.frame(Sex = c("F", "M", "U")),
se = TRUE)
## $Phi
## occ estimate se lcl ucl
## 1 1 0.95929 0.1643596 0.006124813 0.9999889
##
## $p
## occ estimate se lcl ucl
## 1 2 0.0120597 0.0121225 0.001658785 0.08230028
We see the estimate of \(\phi\) here is 0.96, and the estimate of \(p\) here is 0.012.
Then we can see how the different models compare, however, here we only have the variable of time.
turtleantenna.proc <- process.data(Antenna_ch) # group variable has to be in the data
# Make design data (from processed data)
turtleantenna.ddl <- make.design.data(turtleantenna.proc)
fit.turtleantenna.cjs.models <- function(){
Phi.time <- list(formula=~time) # differs between discrete times
Phi.dot <- list(formula=~1) # constant survival
# Detection probability (p) formula
p.time <- list(formula=~time) # one discrete estimate of p per capture event
p.dot <- list(formula=~1) # constant detection
# Construct all combinations and put into one model table
cml <- create.model.list(c("Phi","p")) # makes all possible combinations of those parameter formulas
results <- crm.wrapper(cml,
data = turtleantenna.proc,
ddl = turtleantenna.ddl,
external = FALSE,
accumulate = FALSE,
hessian = TRUE)
return(results)
}
# Run function
turtleantenna.cjs.models <- fit.turtleantenna.cjs.models()
turtleantenna.cjs.models
## model npar AIC DeltaAIC weight neg2lnl convergence
## 1 Phi(~1)p(~1) 2 37.67860 0.00000 9.998920e-01 33.67860 0
## 2 Phi(~1)p(~time) 17 56.00709 18.32849 1.047061e-04 22.00709 0
## 3 Phi(~time)p(~1) 17 62.94995 25.27135 3.253489e-06 28.94995 0
## 4 Phi(~time)p(~time) 32 83.51453 45.83592 1.113803e-10 19.51453 0
Looking at these results we see the best model is the model we were looking at initially, with constant estimates for \(\phi\) and \(p\). We can look again at these predictions.
cjs.modelforAntenna1 <- crm(Antenna_ch)
##
Number of evaluations: 100 -2lnl: 33.69177424
cjs.modelforAntenna1 <- cjs.hessian(cjs.modelforAntenna1)
predict(cjs.modelforAntenna1,
newdata = data.frame(Sex = c("F", "M", "U")),
se = TRUE)
## $Phi
## occ estimate se lcl ucl
## 1 1 0.95929 0.1643596 0.006124813 0.9999889
##
## $p
## occ estimate se lcl ucl
## 1 2 0.0120597 0.0121225 0.001658785 0.08230028
The estimate for \(\phi\) here is 0.96, which is higher than the estimate we found using the other data set, but we see the confidence interval for this is 0.0061 to 1.00, which indicates there is not a lot of confidence in this estimate. The estimate for \(p\) is 0.012 with a confidence interval of 0.0017 to 0.082.
Looking at the estimates of \(\phi\) found in this data, the estimate is higher than the model predicted for the other data set predicted (91-92% for the constant models), but the confidence level indicates that there is not a lot of confidence in this estimate. This makes sense when looking at the data set, because most of the turtles would swim close enough to the array to be captured a few times on the same day (within a few minutes), and then not show up in the data set again. So the uncertain estimation of survival makes sense because there is hardly any data indicating survival of these turtles, or the rates of failure to capture when still alive. In fact, only one of the turtles out of the 42 was captured on more than one day. The estimate of detection is very low, and the confidence interval is a bit smaller on this one. This also makes sense with the fact that most turtles were captured one day by the array and then not again. Overall these estimates are not super informative, and the estimates produced by modeling the other data set appear to be preferable.
A capture history that allows for turtles to be captured at continuous times may make this data more usable. Another thing that would likely make this data more usable would be continued collection of data (over more time than is in this data set) so that there are more capture records and more recaptures of turtles so a better estimate of survival could be made.