ctmm newbie here. I am using amt to do an iSSA. I'm working with a GPS collar data set where 3 of my collars were set to a 3-hour fix rate, and 7 of them were set to a 2-hour fix rate. Rather than rarefy my data to 6-hour intervals, I was hoping to use the simulate function in ctmm to "retake" points every 2 hours for my collars set to the 3-hour fix rate. The ctmm part of my code is working like a charm, my issue is when I start integrating it into amt. Here, when I use the amt function track_resample, to make my bursts (which iSSA needs to make the random points), my fix rates switch back to three hours and I lose A LOT of points. Any ideas where the problem could be? Snippets of my code are below:
Here is what I am doing in ctmm:
#animal1 is a dataframe with GPS locations of one animals with three-hour fix rates
animal1 <- as.telemetry(animal1)
guess1 <- ctmm.guess(animal1, interactive = FALSE)
fit_animal1 <- ctmm.fit(animal1, guess1)
new_dt <- 2 %#% "hours"
resampled_animal1 <- simulate(animal1, CTMM = fit_animal1,
complete = TRUE, dt = new_dt)
#then I saved my output as a dataframe, which looks like this:
Here is what I'm doing with amt:
#locations is my new as.data.frame where I combined all my cleaned data points together
tempdeer <- filter(locations, id == animal1)
tempdeertk <- make_track(tempdeer, .x = x, .y = y, .t = datetime, crs = crs_zone, id = id)
#when I check my average fix rate here, it is 1.65 hours for animal1 with 6384 points
tempdeertk <- track_resample(tempdeertk, rate = hours(2), tolerance = minutes(5))
#when I check my average fix rate here, it is 2.99 hours for animal1, with 3529 points
At this point, my tempdeerktk now looks like this:
For animals that I did not have to change the fix rate with ctmm (the collars originally set to 2 hours) my fix rate and number of points stays the same. I've also changed my tolerance threshold to different settings to try and see if this will help, it doesn't.
Thanks in advance for any help with my problem, or if you see an error in my code that I am not currently seeing.
Ashlyn