Skip to contents

Normal Log-Likelihood

Usage

log_lik_norm(x, mean = 0, sd = 1)

Arguments

x

A numeric vector of values.

mean

A numeric vector of the means.

sd

A non-negative numeric vector of the standard deviations.

Value

An numeric vector of the corresponding log-likelihoods.

Examples

log_lik_norm(c(-2:2))
#> [1] -2.9189385 -1.4189385 -0.9189385 -1.4189385 -2.9189385