Evaluates the normal distribution density function for summary data reported as sample mean, sample SD, and sample N.
dnorm_summary(mu, sigma, x_mean, x_sd, x_N, log = FALSE)
A numeric scalar or vector matching the length of the longest of `mu`, `sigma`, `x_mean`, `x_sd`, and `x_N`.
Mean of the normal distribution to be evaluated (*not* the sample mean). May be a numeric scalar or vector.
Standard deviation of the normal distribution to be evaluated (*not* the sample SD). May be a numeric scalar or vector.
Sample mean. May be a numeric scalar or vector.
Sample standard deviation. May be a numeric scalar or vector.
Sample number of observations. May be a numeric scalar or vector.
TRUE/FALSE: Whether to return the log of the density function. Default FALSE (to return the density function value on the natural scale).
Caroline Ring
`x_mean`, `x_sd`, `X_N`, `mu`, and `sigma` should either be all the same size, or length 1. If they are different lengths, they will be repeated until their lengths match, with a warning.