gam_working_ind: Get indices of parameters in working vector

Description Usage Arguments Value

View source: R/gam_ci_functions.R

Description

This function finds the indices for each parameter of the gamma HMM within the vector of working parameters outputted by gam_working_params().

Usage

1
2
3
4
5
6
7
gam_working_ind(
  num_states,
  num_variables,
  num_subjects,
  num_covariates,
  state_dep_dist_pooled = FALSE
)

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.

num_covariates

The number of covariates in the data that the transition probability matrix depends on.

state_dep_dist_pooled

A logical variable indiacting whether the state dependent distribution parameters mu and sigma should be treated as equal for all subjects.

Value

A list of the start and end indices.


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