View source: R/bayesianOverlap.R
bayesianOverlap | R Documentation |
This function loops over the posterior distribution of the means and covariances matrices of two specified groups.
bayesianOverlap(
ellipse1,
ellipse2,
ellipses.posterior,
draws = 10,
p.interval = 0.95,
n = 100,
do.plot = FALSE
)
ellipse1 |
character code of the form |
ellipse2 |
same as |
ellipses.posterior |
a list of posterior means and covariances fitted
using |
draws |
an integer specifying how many of the posterior draws are to be
used to estimate the posterior overlap. Defaults to |
p.interval |
the prediction interval used to scale the ellipse as per
|
n |
the number of points on the edge of the ellipse used to define it.
Defaults to |
do.plot |
logical switch to determine whether the corresponding ellipses
should be plotted or not. A use-case would be in conjunction with a low
numbered |
A data.frame comprising three columns: the area of overlap, the area
of the first ellipse and the area of the second ellipse and as many rows as
specified by draws
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.