powered by
This function is the goodness of fit test
gofchisq(x, p, conf.level = 0.95)
a vector of observed
probability of each group
confidence level
output for goodness of fit test
Chernoff, H.; Lehmann, E. L.(1954) <doi:10.1214/aoms/1177728726>.
# NOT RUN { x=c(12,9,10,7,12) prob=c(1/5,1/5,1/5,1/5,1/5) #1:1:1:1:1 gofchisq(x=x,p=prob) # }
Run the code above in your browser using DataLab