@pieterjanvc, thanks for the help. Actually I want to run Cochran-Mantel-Haenszel test, and i found this page where procedure was mentioned:
https://rcompanion.org/handbook/H_06.html
So i tried to run this but i had problem with the table, like i have samples (170, 896 and 914) like, this
170 weak 24
170 jar 37
170 strong 41
896 weak 22
896 jar 40
896 strong 40
914 weak 28
914 jar 32
914 strong 42
squads <- tibble::tribble(
~Product, ~`1`, ~`2`, ~`3`,
170L, 24L, 37L, 41L,
896L, 22L, 40L, 40L,
914L, 28L, 32L, 42L
)
head(squads)
#> # A tibble: 3 x 4
#> Product `1` `2` `3`
#> <int> <int> <int> <int>
#> 1 170 24 37 41
#> 2 896 22 40 40
#> 3 914 28 32 42
Created on 2020-08-06 by the reprex package (v0.3.0)