Convert hierarchical HMM structure to a conventional HMM
formatHierHMM(
data,
hierStates,
hierDist,
hierBeta = NULL,
hierDelta = NULL,
hierFormula = NULL,
hierFormulaDelta = NULL,
mixtures = 1,
workBounds = NULL,
betaCons = NULL,
deltaCons = NULL,
fixPar = NULL,
checkData = TRUE
)A list of arguments needed for specifying a hierarchical HMM as a conventional HMM in fitHMM or MIfitHMM, including:
See fitHMM.
See fitHMM.
See fitHMM.
See fitHMM.
See fitHMM.
See fitHMM.
See fitHMM.
See fitHMM.
See fitHMM.
See fitHMM.
See fitHMM.
See fitHMM.
momentuHierHMMData object or a data frame containing the data streams and covariates.
A hierarchical data structure Node for the states ('state'). See fitHMM.
A hierarchical data structure Node for the data streams ('dist'). See fitHMM.
A hierarchical data structure Node for the matrix of initial values for the regression coefficients of the transition probabilities at each level of the hierarchy ('beta'). See fitHMM.
A hierarchical data structure Node for the matrix of initial values for the regression coefficients of the initial distribution at each level of the hierarchy ('delta'). See fitHMM.
A hierarchical formula structure for the transition probability covariates for each level of the hierarchy ('formula'). See fitHMM. Default: NULL (only hierarchical-level effects, with no covariate effects).
A hierarchical formula structure for the initial distribution covariates for each level of the hierarchy ('formulaDelta'). See fitHMM. Default: NULL (no covariate effects and fixPar$delta is specified on the working scale).
Number of mixtures for the state transition probabilities (i.e. discrete random effects *sensu* DeRuiter et al. 2017). See fitHMM. Default: mixtures=1.
A list with elements named 'beta' and/or 'delta', where each element is a hierarchical data structure Node indicating t.p.m. and initial distribution working parameter bounds ('workBounds') for parameters in hierBeta and hierDelta, respectively.
A hierarchical data structure Node indicating t.p.m. constraints ('betaCons') among parameters in hierBeta at each level of the hierarchy.
A hierarchical data structure Node indicating initial distribution constraints ('deltaCons') among parameters in hierDelta at each level of the hierarchy.
A list with elements named 'beta' and/or 'delta', where each element is a hierarchical data structure Node indicating t.p.m. and initial distribution parameters in hierBeta and hierDelta, respectively, which are assumed known.
logical indicating whether or not to check the suitability of data for the specified hierarchy. Ignored unless data is provided. Default: TRUE.