Skip to content

How to make a prior graph

2 messages · Tania Patiño, Rui Barradas

#
Hello, could you tell me which is the command for create graphics of this prior distributions:

Uniform (flat prior)
Jeffrey's  

Thanks,

Tania

Sent from my iPod
#
Hello,

I believe that you're talking about beta-binomial models and that the 
Jeffrey's prior you're talking about is a Beta(1/2, 1/2). If so, try the 
following.

jeffrey <- function(x) dbeta(x, shape1 = 1/2, shape2 = 1/2)

curve(dunif, from = 0, to = 1)
curve(jeffrey, from = 0, to = 1, add = TRUE)

Hope this helps,

Rui Barradas
Em 16-12-2012 04:02, Tania escreveu: