Re: [R] Hypergeometric Function seems to give wrong results

2015-07-08 Thread Ben Bolker
Carlos Nasher via R-help r-help at r-project.org writes: [snip] I need to evaluate the Hypergeometric Function of the 2nd kind (Tricomi confluent hypergeometric function). Therefore I'm using the kummerU function from the fAsianOptions package. It seems to me that kummerU is giving wrong

[R] Hypergeometric Function seems to give wrong results

2015-07-06 Thread Carlos Nasher via R-help
Hello R helpers, I need to evaluate the Hypergeometric Function of the 2nd kind (Tricomi confluent hypergeometric function). Therefore I'm using the kummerU function from the fAsianOptions package. It seems to me that kummerU is giving wrong results. Here's an example: library(fAsianOptions)

Re: [R] hypergeometric function in ‘ mvtnorm’

2012-03-19 Thread R. Michael Weylandt
To view the source of (most) functions, simply type funcname without parentheses: here, you get dmvt function (x, delta, sigma, df = 1, log = TRUE, type = shifted) { if (df == 0) return(dmvnorm(x, mean = delta, sigma = sigma, log = log)) if (is.vector(x)) { x - matrix(x,

Re: [R] hypergeometric function in ‘ mvtnorm’

2012-03-19 Thread statfan
Thanks for your advice. I actually meant to ask about the pmvt for the distribution function. Viewing the source code pmvt uses the function mvt which uses the function probval which sources the fortran code: Fortran(mvtdst, N = as.integer(n), NU = as.integer(df), LOWER =

Re: [R] hypergeometric function in ‘ mvtnorm’

2012-03-19 Thread Berend Hasselman
On 19-03-2012, at 16:54, statfan wrote: Thanks for your advice. I actually meant to ask about the pmvt for the distribution function. Viewing the source code pmvt uses the function mvt which uses the function probval which sources the fortran code: No it doesn't source. It call a

[R] hypergeometric function in ‘ mvtnorm’

2012-03-18 Thread statfan
Is there any way to know how the dmvt function computes the hypergeometric function needed in the calculation for the density of multivariate t distribution? -- View this message in context: http://r.789695.n4.nabble.com/hypergeometric-function-in-mvtnorm-tp4483730p4483730.html Sent from the R

[R] hypergeometric function

2008-12-03 Thread Roslina Zakaria
Hi,   I hope somebody can help me on how to use the hypergeometric function.  I did read through the R documentation on hypergeometric but not really sure what it means.   I would like to evaluate the hypergeometric function as follows: F((2*alpha+1)/2, (2*alpha+2)/2 , alpha+1/2, betasq/etasq).