/rstaninvgamma

R package to draw samples from an inverse gamma via Stan

Primary LanguageRGNU General Public License v3.0GPL-3.0

rstaninvgamma

R package to draw samples from an inverse gamma via Stan

Install

## Install package from github
devtools::install_github("luisdamiano/rstaninvgamma")

Use

## Draw 1000 samples from an inverse gamma with alpha = .9 and beta = 1.2
rstaninvgamma::rinvgamma(1000, 0.9, 1.2)