powered by
Cumulative distribution of the truncated normal function.
ptruncnorm( q, mean = 0, sd = 1, a = -Inf, b = Inf, lower.tail = TRUE, log.p = FALSE )
The distribution function of the truncated normal.
Invalid arguments will result in return value NaN with a warning.
NaN
vector of quantiles,
vector of means.
vector of standard deviations.
vector of the left truncation value(s).
vector of the right truncation value(s).
logical; if TRUE (default), probabilities are P[X <= x] otherwise, P[X > x].
logical; if TRUE, probabilities p are returned as log(p).
Steven E. Pav shabbychef@gmail.com
Hattaway, James T. "Parameter estimation and hypothesis testing for the truncated normal distribution with applications to introductory statistics grades." BYU Masters Thesis (2010). https://scholarsarchive.byu.edu/cgi/viewcontent.cgi?referer=&httpsredir=1&article=3052&context=etd
y <- ptruncnorm(seq(-5,5,length.out=101), a=-1, b=2)
Run the code above in your browser using DataLab