Closed shabbychef closed 8 years ago
It is a little bit more complicated than that. A chi-square with 0 d.f. and non-zero ncp is not identically the ncp. Rather it has variance equal to 4 ncp^2, I believe. A central chi-square with 0 d.f. should be zero, but R's rchisq
gives a warning and the wrong answer.
Fixed in R 3.2.3 : http://permalink.gmane.org/gmane.comp.lang.r.announce/168
Fixed by R 3.2.3, closing.
This is broken:
A 0 df chisquare should be identically 0 (or, rather, the ncp).