powered by
dtuvn calculates the probability density function (pdf) of truncated univariate normal distribution.
dtuvn
dtuvn(x, mean, sd, lower, upper)
value at which density is desired.
mean of the underlying univariate normal distribution.
standard deviation of the underlying univariate normal distribution.
lower bound for truncation.
upper bound for truncation.
dtuvn returns the density (with same dimension and type as x) of truncated univariate normal distribution.
x
# NOT RUN { dtuvn(x= -3:3, mean=0, sd=1 ,lower= -2, upper=2) # }
Run the code above in your browser using DataLab