[R] Strange results for Beta Distribution

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Nov 9 10:58:43 CET 2004


On Tue, 9 Nov 2004 parrinel at med.unibs.it 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 that has density 1.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list