powered by
ptuvn calculates the cumulative distribution function (cdf) of truncated univariate normal distribution.
ptuvn
ptuvn(x, mean, sd, lower, upper)
value at which cdf 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.
ptuvn returns the cumulative distribution function (with same dimension and type as x) of truncated univariate normal distribution.
x
# NOT RUN { ptuvn(x= -3:3, mean=0, sd=1 ,lower= -2, upper=2) # }
Run the code above in your browser using DataLab