Learn R Programming

bayou (version 2.3.1)

dhalfcauchy: Half cauchy distribution taken from the R package LaplacesDemon (Hall, 2012).

Description

dhalfcauchy returns the probability density for a half-Cauchy distribution

Usage

dhalfcauchy(x, scale = 25, log = FALSE)

phalfcauchy(q, scale = 25)

qhalfcauchy(p, scale = 25)

rhalfcauchy(n, scale = 25)

Value

A numeric vector:

If `log = FALSE`

The probability density of `x` under the half-Cauchy distribution.

If `log = TRUE`

The logarithm of the probability density.

Arguments

x

A parameter value for which the density should be calculated

scale

The scale parameter of the half-Cauchy distributoin

log

A logical indicating whether the log density should be returned

q

A vector of quantiles

p

A vector of probabilities

n

The number of observations