Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: distribs
See also: pdfgeom

Quantlet: cdfgeom
Description: computes the cumulative distribution function of a geometric distribution

Usage: ret = cdfgeom (x, p)
Input:
x array of integer numbers (0 <= x), input values
p scalar or array of the same dimension as x, 0 < p < 1, parameter of geometric distribution
Output:
ret array, cumulative probabilities

Example:
library("distribs")
cdfgeom(0:20, 0.5)

Result:
Contents of ret
[ 1,]      0.5
[ 2,]     0.75
[ 3,]    0.875
[ 4,]   0.9375
[ 5,]  0.96875
[ 6,]  0.98438
[ 7,]  0.99219
[ 8,]  0.99609
[ 9,]  0.99805
[10,]  0.99902
[11,]  0.99951
[12,]  0.99976
[13,]  0.99988
[14,]  0.99994
[15,]  0.99997
[16,]  0.99998
[17,]  0.99999
[18,]        1
[19,]        1
[20,]        1
[21,]        1



Author: P. Cizek, 20030106 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006