sdPrior (version 1.0-0)

rapprox_unif: Draw Random Numbers from Approximated (Differentiably) Uniform Distribution.

Description

Draw Random Numbers from Approximated (Differentiably) Uniform Distribution.

Usage

rapprox_unif(n = 100, scale, tildec = 13.86294, seed = 123)

Arguments

n

number of draws.

scale

the scale parameter originally defining the upper bound of the uniform distribution.

tildec

denotes the ratio between scale parameter \(\theta\) and \(s\). The latter is responsible for the closeness of the approximation to the uniform distribution. See also below for further details and the default value.

seed

denotes the seed

Value

n draws with density papprox_unif.

Details

The method is based on the inversion method and the quantile function is computed numerically using uniroot.

References

Nadja Klein and Thomas Kneib (2015). Scale-Dependent Priors for Variance Parameters in Structured Additive Distributional Regression. Working Paper.

See Also

rapprox_unif,papprox_unif