bln: The Binomial-Logit-Normal Distribution

Binomial-logit-normalR Documentation

The Binomial-Logit-Normal Distribution

Description

Density, distribution function, quantile function, and random generation for the binomial-logit-normal distribution with mean equal to mean and standard deviation equal to sd, as well as distribution parameter size.

Usage

dbln(x, size, mean = 0, sd = 1, approximate = TRUE)

dblnpp(x, size, mean = 0, sd = 1)

pbln(q, size, mean = 0, sd = 1)

qbln(p, size, mean = 0, sd = 1)

rbln(n, size, mean = 0, sd = 1)

Arguments

x, q

A vector of quantiles

size

Number of trials

mean

A vector of means

sd

A vector of standard deviations

approximate

Approximate the integral rather than doing a full calculation. The approximate mode generally matches the full integration, except in cases where mean and sd are extreme

p

A vector of probabilities

n

Number of observations, if length(x = n) > 1, the length is taken to be the number required

Value

dbln gives the density

dblnpp gives the density using C++

pbln gives the distribution function

qbln gives the quantile function

rbln generates random deviates


PejLab/bln documentation built on July 22, 2022, 12:04 a.m.