inst/doc/v05_state_decoding_and_prediction.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.dim = c(10,6),
  out.width = "80%",
  fig.align = 'center',
  fig.path = "fHMM-"
)
library("fHMM")

## ----dax model----------------------------------------------------------------
data(dax_model_3t)

## ----decode states------------------------------------------------------------
dax_model_3t <- decode_states(dax_model_3t)

## ----decoded-ts---------------------------------------------------------------
plot(dax_model_3t)

## ----reorder------------------------------------------------------------------
dax_model_3t <- reorder_states(dax_model_3t, 3:1)

## ----predict------------------------------------------------------------------
predict(dax_model_3t, ahead = 10)

Try the fHMM package in your browser

Any scripts or data that you put into this service are public.

fHMM documentation built on Oct. 12, 2023, 5:10 p.m.