gam0_working_params: Transform gamma HMM parameters from natural to working

Description Usage Arguments Value

View source: R/gam0_working_params.R

Description

The function transforms the natural gamma HMM parameters that have additional constraints into working parameters that incorporate the constraints. Zero inflated gamma funciton.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
gam0_working_params(
  num_states,
  num_variables,
  num_subjects,
  alpha,
  theta,
  zweight,
  beta,
  delta
)

Arguments

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.

alpha

A list of matrices containing the shape parameters of the state dependent gamma distributions. Each matrix corresponds to a different variable, each row corresponds to a different subject and each column corresponds to a different state.

theta

A list of matrices containing the scale parameters of the state dependent gamma distributions. Each matrix corresponds to a different variable, each row corresponds to a different subject and each column corresponds to a different state.

zweight

A list of vectors, one for each variable, containing the weights for the zero inflated gamma distribution.

beta

A matrix of regression coefficients for the effect of the covariates on the transition probability matrix gamma.

delta

A list of the initial state distributions for each subject.

Value

A single vector containing working parameters.


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