Learn R Programming

NHMM (version 3.11)

Oz: Most probable state (similar to Viterbi)

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

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

Run this code
# NOT RUN {
#Oz(my.nhmm) 
# }

Run the code above in your browser using DataLab