I have some data in my C code, I want to execute chi-square test on those data.
I can have observed, expected values as well as the chisquare value, but I have no clue how to calculate the chi square distribution value.
I can write a program in R to compute the "pvalue" of the chisquare test, but I am not being able to call that R function from C.
Do you have any idea about how can I use execv()(or similar) function to execute R functions ?
Thanks a bunch,