powered by
To test the homogeneity of stratum effects in stratified paired binary data.
HSE(Tab)
the table combining k 2*2 tables by rows, k is 1,2,...,n
the statistic following the chi-squared distribution
the p value, if p<0.05, there was a statistically significant difference among the stratum
# NOT RUN { table1 <- matrix(c(30,4,3,20),ncol=2) table2 <- matrix(c(25,2,3,20),ncol=2) table <- rbind(table1,table2) HSE(table) # }
Run the code above in your browser using DataLab