How do I interpret chi square goodness of fit results in R?

PamC

New Member
#1
I am a newbe in research and using R. I had to calculate the chi square to determine goodess of fit and I don't know how to interpret the results. Below is the results from R.

Model Chisquare=2.060748 Df=2 Pr(>Chisq)=0.3568734
What does this mean and how do I interpret?
 
#2
i think in general if model chisquare > pr(>Chisq) then you reject the null hypothesis
if model chisquare < pr(>chisq) then you can not reject null
 

Dason

Ambassador to the humans
#4
i think in general if model chisquare > pr(>Chisq) then you reject the null hypothesis
if model chisquare < pr(>chisq) then you can not reject null
Nope. That's not right.

Easiest thing to do is to compare the p-value (which you get from Pr(>Chisq) in this output) to the fixed alpha value (which determines your type-I error rate). Typically this is set to be .05 so in this case we would fail to reject the null hypothesis. Which means we can't say we have evidence of a lack of fit.