Learn R Programming

HSEtest (version 0.1.0)

HSE: Homogeneity of Stratum Effects Test

Description

To test the homogeneity of stratum effects in stratified paired binary data.

Usage

HSE(Tab)

Arguments

Tab

the table combining k 2*2 tables by rows, k is 1,2,...,n

Value

T

the statistic following the chi-squared distribution

p

the p value, if p<0.05, there was a statistically significant difference among the stratum

Examples

Run this code
# 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