who will advise me on the %T>%,
the code is
c(1031, 8, 0, 968, 66, 12) %>%
matrix(ncol = 3) %>%
'colnames<-'(c("Improved", "Hospitalized", "Death")) %>%
'rownames<-'(c("Treated", "Placebo")) %>%
as.table %T>% fisher.test %>% chisq.test
however, it always bypass the fisher.test just conduct the chisq.test. my plan is the data will be output into fisher and chisq test respectively.
your advice is highly appreciated!
Charles