qtnorm: Quantile for the double-truncated normal distribution, x ~...

Description Usage Arguments Value Examples

View source: R/qtnorm.R

Description

Quantile for the double-truncated normal distribution, x ~ N(mean, sd^2) * 1(abs(x) > t)

Usage

1
qtnorm(p, mean, sd, t, log.p = FALSE)

Arguments

mean

vector of means

sd

vector of standard deviations

t

truncation point

log.p

logical; if TRUE, probability given as log(p)

x

vector of values at which to evaluate density

Value

The density of the double-truncated normal distribution at x

Examples

1
2
qtnorm(3, 0, 1, 1)
qtnorm(0.5, 0, 1, 1)

spencerwoody/saFAB documentation built on Feb. 18, 2020, 5:56 a.m.