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. Thank you, Benjamin
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, > BenjaminHaris Skiadas Department of Mathematics and Computer Science Hanover College