Covariate transition probabilities and CIs for pooled model #98
-
I am working with some seabird satellite telemetry data, and so have been using the multiple simulation approach (MIfitHMM) to incorporate location error, and am in turn interested in the influence on different environmental covariates on transition probabilities. I am hoping to extract/predict the data needed to reproduce the covariate-specific transition probability plots produced by plot.momentuHMM (for plot customization) with both estimated transition probabilities and confidence intervals for a range of values for a specific covariate with mean values set for other covariates. From my understanding, CIreal works to predict TPs and CIs for a singular model fit, but will not work on the pooled model. Looking at the documentation for plot.momentuHMM, I see that confidence intervals are calculated using finite-difference approximations, but is there an easy way to extract these values used to create these plots/predict TP estimates and CIs for a set of covariate values using a pooled model? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Assuming the individual model fits are "good" (i.e., converged with no issues for the parameter or variance-covariance matrix estimates), then Here is some example code for the basic example that loads with
|
Beta Was this translation helpful? Give feedback.
Assuming the individual model fits are "good" (i.e., converged with no issues for the parameter or variance-covariance matrix estimates), then
CIreal
can be used for obtaining transition probability estimates and CIs from a pooled model for a given set of covariate values.CIreal
does acceptmiSum
object output fromMIfitHMM
, e.g.,CIreal(mifit$miSum)
, wheremifit
is the object returned byMIfitHMM
whenpoolEstimates=TRUE
. The covariate values are specified using thecovs
argument, butCIreal
requirescovs
to be a single row of values. To replicate the covariate values used byplot.momentuHMM
, one would need to use a sequence of length 101 covering the range of the covariate of interest (…