Bernoulli with p = 1/(1+exp(-th)) cdf/pdf and derivatives
This function computes the cdf, pdf, and associated derivatives
berncpdf(z, th)
z
: vector of responsesth
: linear combination of covariates (can be negative)out = berncpdf(0,2.5)
Pavel Krupskii and Bruno N. Remillard, January 20, 2022
Useful links