hmm.smoother: Smoother recursion over filtered state estimates

Description Usage Arguments Value References Examples

View source: R/hmm.smoother.R

Description

hmm.smoother provides backward (starting at end) recursion over filtered state estimates as output from hmm.filter. The product of this function an array containing final state estimates.

Usage

1
hmm.smoother(f, K1, K2, L, P)

Arguments

f

is array output from hmm.filter

K1

is movement kernel generated by gausskern for behavior state 1

K2

is movement kernel generated by gausskern for behavior state 2

L

is likelihood array output from make.L

P

is transition matrix (usually 2x2) representing probability of state switching

Value

an array of the final state estimates of dim(state, time, lon, lat)

References

Pedersen MW, Patterson TA, Thygesen UH, Madsen H (2011) Estimating animal behavior and residency from movement data. Oikos 120:1281-1290. doi: 10.1111/j.1600-0706.2011.19044.x

Examples

1
2
3
4
5
6
## Not run: 
# Not run as function relies on large arrays of likelihoods
# RUN THE SMOOTHING STEP
s <- hmm.smoother(f, K1, K2, L, P.final)

## End(Not run)

HMMoce documentation built on Nov. 17, 2017, 5:57 a.m.