plot_posterior: Plot histograms of between-subject means

Description Usage Arguments Value

View source: R/utils.R

Description

Plot histograms of between-subject means

Usage

1

Arguments

x

an mHMM_cont object

param

string. Which of the parameters should be plotted? Must be one of 'emiss_mu_bar', 'gamma_int_bar', 'emiss_var_bar' or 'emiss_varmu_bar'

var

int. Which emission distribution should be plotted? Must be an integer equal to or less than the total number of emission distributions. Index of variables is the same as the order in which they appear in the input data given to the mHMM.

ground_truth

numeric. Vector of ground-truth values for the parameters equal to the number of emission distributions. Will be added as a red dotted line.

Value

plots a histogram of the parameter of interest for each of the hypothesized latent states


JasperHG90/sleepsimR documentation built on May 18, 2020, 8:49 a.m.