local_decode: Local decoding of HMM

Description Usage Arguments Value Author(s) References Examples

View source: R/HMMutilities.r

Description

Computes state predictions one at a time for each occasion for each individual

Usage

1
local_decode(object, ddl = NULL, state.names = NULL)

Arguments

object

fitted crm model (must be an HMM model)

ddl

design data list

state.names

names for states used to label output; if NULL uses strata.labels + Dead state

Value

matrix of state predictions

Author(s)

Jeff Laake

References

Zucchini, W. and I.L. MacDonald. 2009. Hidden Markov Models for Time Series: An Introduction using R. Chapman and Hall, Boca Raton, FL. See page 80.

Examples

1
2
3
4
5
6
7
#

# This example is excluded from testing to reduce package check time
# cormack-jolly-seber model
data(dipper)
mod=crm(dipper,model="hmmcjs")
local_decode(mod)

marked documentation built on Dec. 9, 2019, 9:06 a.m.