Estimation of states at each time point with Moving-Resting Process
Estimation of states at each time point with Moving-Resting Process
Estimate the state at each time point under the Moving-Resting process with Embedded Brownian Motion with animal movement data at discretely time points. See the difference between fitStateMR
and fitViterbiMR in detail part. Using fitPartialViterbiMR
to estimate the state within a small piece of time interval.
data: a data.frame whose first column is the observation time, and other columns are location coordinates.
theta: the parameters for Moving-Resting model, in the order of rate of moving, rate of resting, volatility.
cutoff: the cut-off point for prediction.
integrControl: Integration control vector includes rel.tol, abs.tol, and subdivisions.
startpoint: Start time point of interested time interval.
pathlength: the length of interested time interval.
Returns
A data.frame contains estimated results, with elements:
original data be estimated.
conditional probability of moving, resting (p.m, p.r), which is Pr(S(t=tk)=sk∣X) for fitStateMR; log−Pr(s0,...,sk∣Xk) for fitViterbiMR, where Xk is (X0,...,Xk); and log−Pr(sk,...,sk+q−1∣X) for fitPartialViterbiMR.
estimated states with 1-moving, 0-resting.
Details
fitStateMR estimates the most likely state by maximizing the probability of Pr(S(t=tk)=sk∣X), where X is the whole data and sk is the possible sates at tk (moving, resting).
fitViterbiMR estimates the most likely state path by maximizing Pr(S(t=t0)=s0,S(t=t1)=s1,...,S(t=tn)=sn∣X), where X is the whole data and s0,s1,...,sn is the possible state path.
fitPartialViterbiMR estimates the most likely state path of a small peice of time interval, by maximizing the probability of Pr(S(t=tk)=sk,...,S(t=tk+q−1)=sk+q−1∣X), where k is the start time point and q is the length of interested time interval.