bayesianOverlap {SIBER} | R Documentation |
Calculate the overlap between two ellipses based on their posterior distributions.
Description
This function loops over the posterior distribution of the means and covariances matrices of two specified groups.
Usage
bayesianOverlap(
ellipse1,
ellipse2,
ellipses.posterior,
draws = 10,
p.interval = 0.95,
n = 100,
do.plot = FALSE
)
Arguments
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 |
Value
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
.