dr.pvalue function

Compute the Chi-square approximations to a weighted sum of Chi-square(1) random variables.