When I performed chi-square test in LO Calc, the p-value was 3.21562789823436E-11. I used two numeric variables as input variables for CHITEST(). When I used cross table (on same data) the p value was 3.36067387192646E-67. I cross checked by performing chi-square test in R. When I performed the same set of tasks in R the p value is same regardless of the nature of input data that whether it is crosstab or not. Why there is difference in p value in Calc? Moreover the p value produced in Calc is not the same compared to R.