updated the degrees of freedom calculation to match Wang and Leng / Computational Statistics and Data analysis 52 (2008) 5277-5286