rapprox_unif {sdPrior} | R Documentation |
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 |
seed |
denotes the seed |
Details
The method is based on the inversion method and the quantile function is computed numerically using uniroot
.
Value
n draws with density papprox_unif
.
Author(s)
Nadja Klein
References
Nadja Klein and Thomas Kneib (2015). Scale-Dependent Priors for Variance Parameters in Structured Additive Distributional Regression. Working Paper.
See Also
[Package sdPrior version 1.0-0 Index]