Relative Content

Tag Archive for rchi-squaredcontingency

How to code chi-squared integrand using elementary R functions

I am attempting to write probability density function for 2×2 contingency table with given margins, using chi-squared statistics.
I am aware there are easy ways to do this with native R functions, but I am interested in trying to get a better understanding of R, thus I want to try this the “hard way”.