Description Usage Arguments Value References See Also Examples
It can be used to specify either a prior distribution for a model parameter or a likelihood function for an observation model.
| 1 2 3 | 
| mu | Either a fixed value or a prior density for the mean vector. | 
| sigma | Either a fixed value or a prior density for the covariance matrix. | 
| nu | Either a fixed value or a prior density for the degree-of-freedom scalar parameter. | 
| ordered | (optional) A logical setting an increasing ordering constraint on any univariate parameter and any unconstrained parameter vector. Ordered simplices (e.g.  | 
| equal | (optional) A logical setting whether the parameter takes the same value in every hidden state, i.e. the parameter is shared across states. It defaults to unequal parameters. | 
| bounds | (optional) A list with two elements specifying the lower and upper bound for the parameter space. Use either a fixed value for a finite bound or NULL for no bounds. It defaults to an unbounded parameter space. | 
| trunc | (optional) A list with two elements specifying the lower and upper bound for the domain of the density function. Use either a fixed value for a finite bound or NULL for no truncation. It defaults to an unbounded domain. | 
| k | (optional) The number of the hidden state for which this density should be used. This argument is mostly for internal use: you should not use it unless you are acquainted with the internals of this software. | 
| r | (optional) The dimension of the observation vector dimension for which this density should be used. This argument is mostly for internal use: you should not use it unless you are acquainted with the internals of this software. | 
| param | (optional) The name of the parameter. This argument is mostly for internal use: you should not use it unless you are acquainted with the internals of this software. | 
A Density object.
Betancourt, Michael (2017) Identifying Bayesian Mixture Models Stan Case Studies Volume 4. Link.
Other Density: Bernoulli, Beta,
Binomial, Categorical,
Cauchy, CholeskyLKJCor,
Density, Dirichlet,
Exponential, GammaDensity,
Gaussian, ImproperUniform,
InitialFixed, InitialSoftmax,
InverseWishart,
MVGaussianCholeskyCor,
MVGaussian, Multinomial,
NegativeBinomialLocation,
NegativeBinomial, Poisson,
RegBernoulliLogit,
RegBinomialLogit,
RegBinomialProbit,
RegCategoricalSoftmax,
RegGaussian, Student,
TransitionFixed,
TransitionSoftmax, Wishart
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | # With fixed values for the parameters
MVStudent(
  mu    = c(0, 0),
  sigma = matrix(c(1, 0, 0, 1), 2, 2),
  nu    = 2
)
# With priors for the parameters
MVStudent(
  mu    = MVGaussian(mu = c(0, 0), sigma = matrix(c(1, 0, 0, 1), 2, 2)),
  sigma = InverseWishart(nu = 5, sigma = matrix(c(1, 0, 0, 1), 2, 2)),
  nu    = GammaDensity(2, 0.1)
)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.