ptruncnorm {epsiwal} | R Documentation |
ptruncnorm .
Description
Cumulative distribution of the truncated normal function.
Usage
ptruncnorm(q, mean = 0, sd = 1, a = -Inf, b = Inf,
lower.tail = TRUE, log.p = FALSE)
Arguments
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
|
log.p |
logical; if TRUE, probabilities p are given as log(p). |
Value
The distribution function of the truncated normal.
Invalid arguments will result in return value NaN
with a warning.
Note
Input are recycled as possible.
Author(s)
Steven E. Pav shabbychef@gmail.com
References
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
Examples
y <- ptruncnorm(seq(-5,5,length.out=101), a=-1, b=2)