Probability mass fucntion
bernoulli_lpmf.Rd
Probability mass fucntion
Examples
prob <- prob_detec(env = matrix(c(-1, 0, -0.1, 0.9), ncol = 1),
mu = 0, sigl = 1, sigr = 0.9, c = -0.8, pd = 0.9)
bernoulli_lpmf(prob, occ = c(0, 1, 1, 0))
#> [1] -0.7277350 -0.4764612 -0.4780140 -0.7277350