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:> 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
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.