powered by
Computes the value of a Gaussian hypergeometric function \( F(a,b,c,z) \) for \(-1 \leq z \leq 1\) and \(a,b,c \geq 0\)
f21hyper(a, b, c, z)
The value of the Gaussian hypergeometric function \( F(a,b,c,z) \)
The parameter a of the Gaussian hypergeometric function, must be a positive scalar here
a
The parameter b of the Gaussian hypergeometric function, must be a positive scalar here
b
The parameter c of the Gaussian hypergeometric function, must be a positive scalar here
c
The parameter z of the Gaussian hypergeometric function, must be between -1 and 1 here
z
The function f21hyper complements the analysis of the 'hyper-g prior' introduced by Liang et al. (2008). For parameter values, compare cf. https://en.wikipedia.org/wiki/Hypergeometric_function.
f21hyper
Liang F., Paulo R., Molina G., Clyde M., Berger J.(2008): Mixtures of g-priors for Bayesian variable selection. J. Am. Statist. Assoc. 103, p. 410-423
https://en.wikipedia.org/wiki/Hypergeometric_function
package hypergeo for a more proficient implementation.
hypergeo
Check http://bms.zeugner.eu for additional help.
f21hyper(30,1,20,.8) #returns about 165.8197 f21hyper(30,10,20,0) #returns one f21hyper(10,15,20,-0.1) # returns about 0.4872972
Run the code above in your browser using DataLab