Skip to content
Snippets Groups Projects
Commit 540a7b56 authored by SANTAGOSTINI Pierre's avatar SANTAGOSTINI Pierre
Browse files

Error in the calculation of Lauricella for the case when nulambda[1]<1 and nulambda[p]>1

parent 7bfa6590
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,7 @@ rdstudent <- function(nu1, Sigma1, nu2, Sigma2, bet, eps = 1e-06) {
} else {
lauric <- lauricella(delta2, c(rep(0.5, p-1), delta1 + delta2 - p/2), delta1 + delta2,
c(1 - lambda[1:(p-1)]/lambda[p], 1/nulambda[p]), eps = eps)
lauric <- 1/nulambda[p] * prod(sqrt(nulambda)) * lauric
lauric <- (nulambda[p])^(-delta2) * prod(sqrt(nulambda)) * lauric
}
gamma1p <- gamma((nu1 + p)/2); gamma2p <- gamma((nu2 + p)/2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment