Examples for 'stats::Geometric'


The Geometric Distribution

Aliases: Geometric dgeom pgeom qgeom rgeom

Keywords: distribution

### ** Examples

qgeom((1:9)/10, prob = .2)
[1]  0  0  1  2  3  4  5  7 10
Ni <- rgeom(20, prob = 1/4); table(factor(Ni, 0:max(Ni)))
 0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 
 3  5  3  1  3  0  0  0  0  2  1  0  0  0  1  0  0  1 

[Package stats version 4.2.3 Index]