Description Usage Arguments Value Examples
View source: R/BatMixturesFitting.R
This is the main function of the package flexcircmix
, and functions as
an interface to fit mixtures of Batschelet-type distributions, using
frequentist or Bayesian methods.
1 2 3 4 |
x |
A dataset of angles in radians. |
method |
Character; One of "bayes", "EM", or "boot". The method of obtaining a fit. |
bat_type |
Character; Either "power" or "inverse", denoting the type of Batschelet distribution to employ. |
n_comp |
The number of components to be used in the mixture. This is fixed, so it can not be estimated. |
init_pmat |
An |
fixed_pmat |
An |
probs |
Numeric vector; The probabilities for which to compute quantiles
in summarizing bootstrap or MCMC samples. By default, |
post_est_median |
Logical; Only relevant for MCMC. Whether to use the
posterior median as the estimate. If FALSE (the default) we use the mean,
or mean direction for |
chains |
Integer; Only relevant for MCMC. Number of MCMC chains to perform. |
mcmc_parallel |
Logical; Only relevant for MCMC with |
... |
Additional arguments to be passed to the selected |
An object of class 'batmixmod'.
1 2 | x <- rinvbatmix(50)
fitbatmix(x, method = "EM")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.