get_likelihood: Likelihood of number of success of an arbitrary set of...

View source: R/get_likelihood.R

get_likelihoodR Documentation

Likelihood of number of success of an arbitrary set of probabilities

Description

Is just binomial distributions under the hood

Usage

get_likelihood(probs, n_buckets = Inf)

Arguments

probs

a vector of the probabilities of all the independent events

n_buckets

the number of buckets to break the 0 to 1 probability space in and combine events falling within that bucket to speed up the processing.

Examples

dt_success_probs = get_likelihood(
   # probs = runif(100),
   probs = rep(.5,100),
   n_buckets = Inf
)
dt_success_probs[,plot(successes,pdf)]


thecomeonman/CodaBonito documentation built on April 24, 2023, 11:41 a.m.