powered by
chisq.exp(data, p, graph = FALSE)
TRUE
prop.test
chisq.test
mosaicplot
proportions <- sample(c(0,1),60,replace=TRUE) populations <- sample(LETTERS[1:3],60,replace=TRUE) tab.cont <- table(populations,proportions) p.theo <- c(0.2,0.5,0.7) chisq.exp(tab.cont,p=p.theo)
Run the code above in your browser using DataLab