MixBetaDens: Mixture of Beta Functions

View source: R/Rfunctions.R

MixBetaDensR Documentation

Mixture of Beta Functions

Description

MixBetaDens generates the pdf and cdf of a mixture of beta functions, and calculates the area under the graph between two points.

Usage

MixBetaDens(
  n,
  p,
  x = seq(0, 15, by = 0.01),
  a = 0,
  b = 1,
  n_g = n_g,
  var = var
)

Arguments

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

Details

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.

Value

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


oclust documentation built on Dec. 28, 2022, 2 a.m.

Related to MixBetaDens in oclust...