Re: [R] How to make a prior graph

2012-12-16 Thread Rui Barradas
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 = T

[R] How to make a prior graph

2012-12-15 Thread Tania
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@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d