h2f1: Use Bruce Hardie's Gaussian hypergeometric implementation

Description Usage Arguments References See Also

View source: R/pnbd.R

Description

In benchmarking pnbd.LL runs more quickly and it returns the same results if it uses this helper instead of hypergeo, which is the default. But h2f1 is such a barebones function that in some edge cases it will keep going until you get a segfault, where hypergeo would have failed with a proper error message.

Usage

1
h2f1(a, b, c, z)

Arguments

a,

counterpart to A in hypergeo

b,

counterpart to B in hypergeo

c,

counterpart to C in hypergeo

z,

counterpart to z in hypergeo

References

Fader, Peter S., and Bruce G.S. Hardie. "A Note on Deriving the Pareto/NBD Model and Related Expressions." November. 2005. Web. http://www.brucehardie.com/notes/008/

See Also

hypergeo


BTYD documentation built on Nov. 18, 2021, 1:10 a.m.