norm_hist: Plot histograms

Description Usage Arguments Value

View source: R/timeseries_histogram_plotting.R

Description

This function plots the histograms for each subject and variable with the true state dependent distributions overlayed.

Usage

1
2
3
4
5
6
7
8
9
norm_hist(
  sample,
  num_states,
  num_variables,
  num_subjects,
  hmm,
  width = 1,
  x_step = 0.2
)

Arguments

sample

The sample generated by norm_generate_sample().

num_states

The number of states in the desired HMM.

num_variables

The number of variables in the data.

num_subjects

The number of subjects/trials that generated the data.

hmm

A list of parameters that specify the normal HMM, including num_states, num_variables, num_subjects, mu, sigma, gamma, delta.

width

The width of the histogram bins.

x_step

A value indicating the step length for the range of observation values.

Value

Histograms of the data with the distributions overlayed.


simonecollier/lizardHMM documentation built on Dec. 23, 2021, 2:24 a.m.