Re: [R] Strange results for Beta Distribution

2004-11-09 Thread Dimitris Rizopoulos
Why strange? It is known that Beta(1, 1) = Uniform(0,1) whose density is 1/(1-0)=1 Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/396887 Fax: +32/16/337015

Re: [R] Strange results for Beta Distribution

2004-11-09 Thread Prof Brian Ripley
On Tue, 9 Nov 2004 [EMAIL PROTECTED] wrote: I got these results from the example in the function dbeta: x - seq(0, 1, length=21) dbeta(x, 1, 1) [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Any Idea? What does help page say the density is? A Beta(1,1) distribution is U(0, 1), and

RE: [R] Strange results for Beta Distribution

2004-11-09 Thread Ted Harding
On 09-Nov-04 [EMAIL PROTECTED] wrote: Dear All, I got these results from the example in the function dbeta: x - seq(0, 1, length=21) dbeta(x, 1, 1) [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Any Idea? The density function for Beta(p,q) is (x^(p-1))*((1-x)^(q-1))/B(p,q). In your