gam0_ci_data: Reformat confidence interval data

Description Usage Arguments Value

View source: R/gam0_ci_functions.R

Description

This is a helper function for gam_ci() which reformats the output so that it is more easily interpreted.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
gam0_ci_data(
  num_states,
  num_variables,
  num_subjects,
  num_covariates,
  estimate_vec,
  upper_vec,
  lower_vec,
  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 depends on.

estimate_vec

A vector containing the estimated natural parameters of the gamma HMM in the format outputted by gam_natural_vec().

upper_vec

A vector containing the upper confidence interval of the estimated natural parameters of the gamma HMM in the format outputted by gam_natural_vec().

lower_vec

A vector containing the lower confidence interval of the estimated natural parameters of the gamma HMM in the format outputted by gam_natural_vec().

state_dep_dist_pooled

A logical variable indicating whether the state dependent distribution parameters alpha and theta should be treated as equal for all subjects.

Value

A list containing the upper and lower confidence interval for each estimated parameter.


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