Call R from JAVA to get Chi-squared statistic and p-value

前端 未结 6 848
滥情空心
滥情空心 2020-12-19 23:49

I have two 4*4 matrices in JAVA, where one matrix holds observed counts and the other expected counts.

I need an automated way to calculate the p-value from the chi

6条回答
  •  太阳男子
    2020-12-20 00:25

    Check this page JRI

    Description form their site:

    JRI is a Java/R Interface, which allows to run R inside Java applications as a single thread. Basically it loads R dynamic library into Java and provides a Java API to R functionality. It supports both simple calls to R functions and a full running REPL.

提交回复
热议问题