get_viterbi: Determine the most likely path of survival states for each...

Description Usage Arguments Value Examples

View source: R/viterbi.R

Description

Determine the most likely path of survival states for each fish

Usage

1
get_viterbi(fit_mod, msm_data, best_detects)

Arguments

fit_mod

Output of fit_hmm.

msm_data

Output of org_dat_msm.

best_detects

Output of get_best_locations or get_locations.

Value

Returns a data.frame where $Viterbi encodes the most likely path of survival states (1 means alive whereas 2 means expired). The returned data can be input into make_plot.

Examples

1
viterbi <- get_viterbi(fit_mod, org_dat, best_detects)

jBernardADFG/telprep documentation built on July 26, 2020, 2:17 a.m.