ptruncnorm | R Documentation |
Cumulative distribution of the truncated normal function.
ptruncnorm( q, mean = 0, sd = 1, a = -Inf, b = Inf, lower.tail = TRUE, log.p = FALSE )
q |
vector of quantiles. |
mean |
vector of means. |
sd |
vector of standard deviations. |
a |
vector of the left truncation value(s). |
b |
vector of the right truncation value(s). |
lower.tail |
logical; if TRUE (default), probabilities are P[X ≤ x] otherwise, P[X > x]. |
log.p |
logical; if TRUE, probabilities p are given as log(p). |
The distribution function of the truncated normal.
Invalid arguments will result in return value NaN
with a warning.
Input are recycled as possible.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.