Learn R Programming

NHMM (version 3.11)

OQQ: Calculates the mean of the transition matrix

Description

OQQ calculates the mean of the transition array which is a K by K by T. Each row is the state at time t-1 and the columns are time t. The Gui plot shows the transition probability over time for each t-1 to t transition.

Usage

OQQ(nhmmobj, outfile = NULL)

Arguments

nhmmobj

an object created from the NHMM function

outfile

a directory to put the .png plot

Value

QQmean the transition probabilities for each time step. [K by K by T]

output: a plot where each row is the state at time t-1 and the columns are time t. The GUI plot shows the transition probability over time for each t-1 to t transition. If the columns are the same then the Markov property is probably weak.

Examples

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

Run the code above in your browser using DataLab