R/ddnorm.R

Defines functions ddnorm

Documented in ddnorm

## derivatives of the density function of the normal distribution
## with respect to x
ddnorm <- function( x, mean = 0, sd = 1 ) {
   deriv <- - dnorm( x = x, mean = mean, sd = sd ) * ( x - mean ) / sd^2
   return( deriv )
}

Try the miscTools package in your browser

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

miscTools documentation built on May 3, 2023, 5:11 p.m.