R/ZeroTruncatedGeometric.R

Defines functions rztgeom qztgeom pztgeom dztgeom

Documented in dztgeom pztgeom qztgeom rztgeom

### actuar: Actuarial Functions and Heavy Tailed Distributions
###
### Definition of the {d,p,q,r}ztgeom functions to compute
### characteristics of the Zero Truncated Geometric distribution.
###
### See Appendix B of Klugman, Panjer & Willmot, Loss Models, Wiley.
###
### AUTHOR: Vincent Goulet <vincent.goulet@act.ulaval.ca>

dztgeom <- function(x, prob, log = FALSE)
    .External(C_actuar_do_dpq, "dztgeom", x, prob, log)

pztgeom <- function(q, prob, lower.tail = TRUE, log.p = FALSE)
    .External(C_actuar_do_dpq, "pztgeom", q, prob, lower.tail, log.p)

qztgeom <- function(p, prob, lower.tail = TRUE, log.p = FALSE)
    .External(C_actuar_do_dpq, "qztgeom", p, prob, lower.tail, log.p)

rztgeom <- function(n, prob)
    .External(C_actuar_do_random, "rztgeom", n, prob)

Try the actuar package in your browser

Any scripts or data that you put into this service are public.

actuar documentation built on Nov. 8, 2023, 9:06 a.m.