berncpdf function

Bernoulli with p = 1/(1+exp(-th)) cdf/pdf and derivatives

Bernoulli with p = 1/(1+exp(-th)) cdf/pdf and derivatives

This function computes the cdf, pdf, and associated derivatives

berncpdf(z, th)

Arguments

  • z: vector of responses
  • th: linear combination of covariates (can be negative)

Returns

  • out: Matrix of conditional cdf and pdf with derivative with respect to parameters

Examples

out = berncpdf(0,2.5)

Author(s)

Pavel Krupskii and Bruno N. Remillard, January 20, 2022

  • Maintainer: Bruno N Remillard
  • License: GPL (>= 2)
  • Last published: 2023-11-30

Useful links