Skip to content

Instantly share code, notes, and snippets.

@AngelBerihuete
Created November 25, 2015 16:28
Show Gist options
  • Save AngelBerihuete/b7134497947f37107365 to your computer and use it in GitHub Desktop.
Save AngelBerihuete/b7134497947f37107365 to your computer and use it in GitHub Desktop.
library(MCMCpack)
x <- 0.5
shape <- 2
scale <- 3
dinvgamma(x, shape, scale)
#from scipy.stats import invgamma
#x=0.5
#shape = 2.0
#scale = 3.0
#y = x/scale
#invgamma.pdf(y, a = shape)/scale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment