inst/snippets/phs.R

phs <- cbind(c(104, 189), c(10933, 10845)); phs
rownames(phs) <- c("aspirin", "placebo")                  # add row names
colnames(phs) <- c("heart attack", "no heart attack")     # add column names
phs 
xchisq.test(phs)

Try the Lock5withR package in your browser

Any scripts or data that you put into this service are public.

Lock5withR documentation built on May 2, 2019, 3:43 p.m.