View source: R/mixedvonmises.R
mle.vonmisesmix | R Documentation |
Computes the maximum likelihood estimates for the parameters of a mixed
von Mises distribution: the mean directions, the concentration parameters,
and the proportions of the distributions. The code is a simplified version of
movMF::movMF()
with the added
feature of optionally fixed mean directions \insertCiteHornik2014cylcop.
mle.vonmisesmix(theta, mu = NULL, ncomp = 2)
theta |
numeric vector of angles. |
mu |
(optional) numeric vector of length |
ncomp |
positive integer specifying the number of components of the mixture model. |
The function complements the 'circular' package, which
provides functions to make maximum likelihood estimates of e.g. von Mises
(circular::mle.vonmises()
), or wrapped Cauchy distributions
(circular::mle.wrappedcauchy()
)
A list containing the optimized parameters mu
, kappa
,
and prop
.
Hornik2014cylcop.
movMF::movMF()
,
circular::mle.vonmises()
,
dvonmisesmix()
,
qvonmisesmix()
.
set.seed(123) n <- 10 angles <- rvonmisesmix(n, mu = c(0, pi), kappa = c(2, 1), prop = c(0.4,0.6) ) mle.vonmisesmix(theta = angles) mle.vonmisesmix(theta = angles, mu = c(0, pi))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.