View source: R/fHMM_parameters.R
fHMM_parameters | R Documentation |
This function sets and checks model parameters. Unspecified parameters are sampled.
fHMM_parameters(
controls = list(),
hierarchy = FALSE,
states = if (!hierarchy) 2 else c(2, 2),
sdds = if (!hierarchy) "normal" else c("normal", "normal"),
Gamma = NULL,
mu = NULL,
sigma = NULL,
df = NULL,
Gamma_star = NULL,
mu_star = NULL,
sigma_star = NULL,
df_star = NULL,
scale_par = c(1, 1),
seed = NULL,
check_controls = TRUE
)
## S3 method for class 'fHMM_parameters'
print(x, ...)
controls |
Either a The
Either none, all, or selected elements can be specified. Unspecified parameters are set to their default values. Important: Specifications in |
hierarchy |
A If By default, |
states |
An If By default, |
sdds |
A
The distribution parameters, i.e. the
can be fixed via, e.g., If By default, |
Gamma , Gamma_star |
A transition probability It should have dimension
|
mu , mu_star |
A For the gamma- or Poisson-distribution, It should have length
|
sigma , sigma_star |
A positive It should have length
|
df , df_star |
A positive It should have length Only relevant in case of a state-dependent t-distribution.
|
scale_par |
A positive The first entry is the scale for
|
seed |
Sets a seed for the sampling of parameters. |
check_controls |
Either |
x |
An object of class |
... |
Currently not used. |
See the vignette on the model definition for more details.
An object of class fHMM_parameters
.
parameters <- fHMM_parameters(states = 2, sdds = "normal")
parameters$Gamma
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.