Linear-by-linear association test for ordered categories (Gibbons Ch 14.6.1)
Source:R/ordct.R
morie_ordered_categories.RdM^2 = (n - 1) * cor(u, v)^2 ~ chi^2_1 under independence, where (u, v) are row/column scores weighted by cell counts.
Examples
morie_ordered_categories(x = rnorm(50))
#> $statistic
#> [1] NA
#>
#> $p_value
#> [1] NA
#>
#> $df
#> [1] 1
#>
#> $n
#> [1] -8
#>
#> $correlation
#> [1] NA
#>
#> $method
#> [1] "Linear-by-linear association"
#>