Tag Archives: Chi Square

Chi Square GOF Test

The following chunk of code will create a function to conduct a chi-square goodness of fit test in R. #Professor Example – Goodness of fit #Do the observed favorability proportions depart markedly from their #expected value? enroll<-c(32,25,10) expected<-c(22.3,22.3,22.3) rbind(enroll,expected) chi<-sum(((enroll-expected)^2)/expected) … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment