dhalfcauchy: Half cauchy distribution taken from the R package...

View source: R/probability.R

dhalfcauchyR Documentation

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)

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

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.


bayou documentation built on June 10, 2025, 5:13 p.m.