|
template<domain D> |
D float32 | chiSquared (D uint32[[2]] contTable) |
|
template<domain D> |
D float64 | chiSquared (D uint64[[2]] contTable) |
|
Perform Pearson's chi-squared test of independence.
- Note
- D - any protection domain
-
Supported types - int32 / int64
-
This version does not do continuity correction so the R equivalent is chisq.test(contingencyTable, correct=FALSE)
- Parameters
-
contTable | - contingency table in the format
| Cases | Controls |
Option 1 | c1 | d1 |
Option 2 | c2 | d2 |
Option 3 | c3 | d3 |
… | … | … |
|
- Returns
- returns the test statistic
- Leakage
- None
◆ chiSquared() [1/2]
D float32 chiSquared |
( |
D uint32[[2]] |
contTable | ) |
|
◆ chiSquared() [2/2]
D float64 chiSquared |
( |
D uint64[[2]] |
contTable | ) |
|