Skip to contents

Beta Log-Likelihood

Usage

log_lik_beta(x, alpha = 1, beta = 1, tlower = 0, tupper = 1)

Arguments

x

A vector of values between 0s and 1s.

alpha

The first shape parameter of the beta distribution.

beta

The second shape parameter of the beta distribution.

tlower

A numeric vector of the lower truncation point.

tupper

A numeric vector of the upper truncation point.

Value

An numeric vector of the corresponding log-likelihoods.

Examples

log_lik_beta(c(0, 0.5, 0.7, 1), 0.7)
#> [1]        Inf -0.1487308 -0.2496725 -0.3566749