R: chisq.test at 99%

2.2k Views Asked by At

Is there a way to set chi sq test confidence from 95% to 99%?

The base function

chisq.test()

don't complains this function...

Edit:

I don't ask for p-values. My question is about confidence risk .

The alpha risk (confidence) of chisq test is by default 0.05. I would like to set it to 0.01 (99% confidence). The alpha risk is the cutoff for the statistic X. For a given Chi distribution whit 'x' degrees of freedom, the alpha risk correspond to a "X risk statistic". If 'X statistic of our data' is greater than 'X risk statistic' we rejects H0. The we can calculate p-values, that can be interpreted as the probability that our H1 is true.

I would change the confidence risk, from 0.05 to 0.01. If we change the confidence risk, the p-values changes. for example a p-value of 0.001 for 95% confidence, could be 0.2 for 99% confidence.

1

There are 1 best solutions below

1
On

You can compare the returned p.value with your criterion:

chisq.test(x)$p.value < (1 - 0.99)

This will return a logical value.