1

I have a contingency table where I estimate the p value Pearson's Chi-squared test, I want to take a confidence interval to validate this value P some code to do this by simulation monte carlo?

       A   B   C   D   
  H    3   9  16  13  
  M   13   8  19  21 



  Pearson's Chi-squared test
   data:  tabla1
X-squared = 4.7077, df = 3, p-value = 0.1945
kjetil b halvorsen
  • 63,378
  • 26
  • 142
  • 467
Jonas
  • 35
  • 4

1 Answers1

1

It looks like you are asking about how to construct a confidence interval for the p-value (from a chisquared test). But confidence intervals are constructed for parameters, and the p-value is not a parameter. So a confidence interval for the p-value does not make sense.

Further discussion is here.

kjetil b halvorsen
  • 63,378
  • 26
  • 142
  • 467