On Mar 14, 2007, at 8:44 AM, Benjamin Dickgiesser wrote:
> Hi,
>
> is there a package available which lets me generate random data for
> the geometric distribution with density:
>
>  p(x) = p (1-p)^(x-1) ?
>
> rgeom uses the density p(x) = p (1-p)^x.

Why not just use rgeom, and then add 1 to all the values?

> Thank you,
> Benjamin

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College

______________________________________________
[email protected] 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.

Reply via email to