dtnorm: dtnorm

Description Usage Arguments Value Author(s)

View source: R/dtnorm.R

Description

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

Usage

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

Arguments

x

vector of values at which to evaluate density

mean

vector of means

sd

vector of standard deviations

t

truncation value

log.p

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

Value

The density of the double-truncated normal distribution at x

Author(s)

Spencer Woody


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