Oz: Most probable state (similar to Viterbi)

Description Usage Arguments Value Examples

View source: R/Oz.R

Description

Oz calculates the most probable state per time step (Viterbi like) with values from 1,...,K. The histogram of this sequence is displayed in the GUI output. If there are ties for a given day then the lowest number state is chosen.

Usage

1
Oz(nhmmobj, outfile = NULL)

Arguments

nhmmobj

an object created from the NHMM function

outfile

a directory to put the .png plot

Value

zbest the most probable sequence from all iterations

output: a plot of a histogram of the distribution of the most probable state sequence. If the number of states in the histogram is less than K, it probably means you should probably re-run the model with smaller K as some of the states have disappeared.

Examples

1
#Oz(my.nhmm) 

NHMM documentation built on July 1, 2020, 7:28 p.m.

Related to Oz in NHMM...