Hello! The function rgeom is based on the geometric distribution such that x = 0, 1, .... Is there a function which produces the geometric results such that x = 1, 2, ... please? Thought I'd check before I started coding. Thank you! Sincerely, Erin -- Erin Hodgess Associate Professor Department of Mathematical and Statistics University of Houston - Downtown mailto: erinm.hodgess at gmail.com [[alternative HTML version deleted]]
Maybe you are looking for rnbinom? JS Huang 636.536.5635 -----Original Message----- From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Erin Hodgess Sent: Monday, March 09, 2015 3:52 PM To: R help Subject: [R] question about the geometric distribution, please Hello! The function rgeom is based on the geometric distribution such that x = 0, 1, .... Is there a function which produces the geometric results such that x = 1, 2, ... please? Thought I'd check before I started coding. Thank you! Sincerely, Erin -- Erin Hodgess Associate Professor Department of Mathematical and Statistics University of Houston - Downtown mailto: erinm.hodgess at gmail.com [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 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. Confidentiality Notice: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it from your computer. Thank you.
David Winsemius
2015-Mar-09 21:26 UTC
[R] question about the geometric distribution, please
On Mar 9, 2015, at 1:52 PM, Erin Hodgess wrote:> Hello! > > The function rgeom is based on the geometric distribution such that x = 0, > 1, .... > > Is there a function which produces the geometric results such that x = 1, > 2, ... > please? > > Thought I'd check before I started coding.This seemed unclear or trivial. Cannot decide which from the description. The arguments to rgeom are "n" and "prob". If you want a geometric-like result with a "shifted" range, then just add one to the rgeom result.> > Thank you! > > Sincerely, > Erin > > > -- > Erin Hodgess > Associate Professor > Department of Mathematical and Statistics > University of Houston - Downtown > mailto: erinm.hodgess at gmail.com > > [[alternative HTML version deleted]]-- David Winsemius Alameda, CA, USA