Learn R Programming

BTYD (version 2.4.3)

h2f1: Use Bruce Hardie's Gaussian hypergeometric implementation

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

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