add_beta: Add a new component to a mixture distribution.

View source: R/add_beta.R

add_betaR Documentation

Add a new component to a mixture distribution.

Description

Adds a monotonically decreasing beta distribution to an existing distribution.

Usage

add_beta(
  p,
  mixm,
  opt_method = "L-BFGS-B",
  monotone = TRUE,
  min_null = 0.4,
  suppress_warn = TRUE,
  ...
)

Arguments

p

A vector of p-values

mixm

A betamix object representing the beta mixture model. This is typically created by the fit_betamix function.

opt_method

Optimization method. Options are "L-BFGS-B" or "SANN".

monotone

Only use monotonically-decreasing beta components in the mixture model

min_null

The lower bound on the null distribution mixing fraction.

...

Additional parameters to be passed to bbmle::mle2.


stevehoang/pbayes documentation built on Feb. 16, 2024, 2:20 p.m.