Sorry I have to break this up into multiple messages, I can't seem to post it as one.
I think I have my workflow set up now to allow for
the outputs I want, but there is a few small things I was wondering if
you maybe help with. Sorry in advance for the long post!
I
am using an lapply to perform the ctmm.select() as below, where the
telemetry object is split into annual tracks for each individual:
trial_ctmm <- lapply(1:length(trial_telemetry), function(i) ctmm.select(trial_telemetry[[i]], trial_guess[[i]], cores = 7,level = 1, verbose = F, trace = 1))
I
haven't been able to figure out how to extract the name of the best
model that is selected by doing this method; when I was doing a mapply
for this step I was able to by getting the names() of the object.
However, I can't seem to have aligned AKDE for each individual with the
output of the mapply (as I want to determine overlap across years for
each individual's annual HR). I can get an idea of which one was chosen
by my variogram outputs, but that doesn't help with reporting the
results. I also get this warning occasionally, though I'm never sure
which year it refers to:
Warning messages:
1: In ctmm.fit(data, GUESS, trace = trace2, ...) :
pREML failure: indefinite ML Hessian or divergent REML gradient.
I am getting a few weird fits in the models, such as seen below:
This
is typically happening when the tracking frequency was reduced to
monthly on these individuals, but I was wondering if it should be
something I need to be concerned about with respect to the AKDEs that
are generated.