
Last chance! 50% off unlimited learning
Sale ends in
udgig(theta, psi, chi, lb=0, ub=Inf)
udgiga(theta, omega, eta=1, lb=0, ub=Inf)
"unuran.cont"
. An alternative parametrization used parameters
$\theta$, $\omega$, and $\eta$
and has density proportional to
lb
,ub
).
unuran.cont
.## Create distribution object for GIG distribution
distr <- udgig(theta=3, psi=1, chi=1)
## Generate generator object; use method PINV (inversion)
gen <- pinvd.new(distr)
## Draw a sample of size 100
x <- ur(gen,100)
Run the code above in your browser using DataLab