Description Usage Arguments Value
View source: R/gam0_working_params.R
The function transforms the natural gamma HMM parameters that have additional constraints into working parameters that incorporate the constraints. Zero inflated gamma funciton.
1 2 3 4 5 6 7 8 9 10 | gam0_working_params(
num_states,
num_variables,
num_subjects,
alpha,
theta,
zweight,
beta,
delta
)
|
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 |
delta |
A list of the initial state distributions for each subject. |
A single vector containing working parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.