MixBetaDens | R Documentation |
MixBetaDens generates the pdf and cdf of a mixture of beta functions, and calculates the area under the graph between two points.
MixBetaDens( n, p, x = seq(0, 15, by = 0.01), a = 0, b = 1, n_g = n_g, var = var )
n |
The number of observations in the dataset |
p |
The dimension |
x |
A vector of x values to evaluate. Default value is seq(0, 15, by=0.01) |
a |
Lower bound for area evaluation. Default value is 0 |
b |
Upper bound for area evaluation. Default value is 1 |
n_g |
Vector describing the number of observations in each cluster |
var |
A list of cluster variance matrices |
The domain for this function is not [0,1] as is typical with a beta function. The domain encompasses the shifted log-likelihoods generated in oclust
.
MixBetaDens returns a list with
pdf |
The probability density at each x value |
cdf |
The cumulative density at each x value |
area |
The area under the pdf graph between a and b |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.