lr_test: LR chi-squared test for two-way tables

Description Usage Arguments References Examples

View source: R/zxx.R

Description

Likelihood ratio chi-squared test for two-way contingency tables.

Usage

1

Arguments

x

two-way table

print

logical; if TRUE, prints summary of test

References

http://ww2.coastal.edu/kingw/statistics/R-tutorials/loglin.html

Examples

1
2
3
4
5
6
data(Titanic)
dat <- margin.table(Titanic, c(2, 4))
lr_test(dat)

## compare to
loglin(dat, margin = 1:2)

raredd/ragree documentation built on March 25, 2021, 1:42 p.m.