Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Simulation of the geometric distribution

    Dear all,

    I need to simulate a geometric distribution in Stata. Is there a command or package that does it?

    Best,
    Dmitry

  • #2
    You can use the negative binomial random number generator, since the geometric distribution is just the negative binomial distribution for 1 success. See help rnbinomial.
    Jorge Eduardo Pérez Pérez
    www.jorgeperezperez.com

    Comment

    Working...
    X