R/sirt_digamma1.R

Defines functions sirt_digamma1

## File Name: sirt_digamma1.R
## File Version: 0.01


#-- derivative of digamma function
sirt_digamma1 <- function(x, h=1e-3)
{
    ( digamma(x+h) - digamma(x-h) ) / (2*h)
}

Try the sirt package in your browser

Any scripts or data that you put into this service are public.

sirt documentation built on May 29, 2024, 8:43 a.m.