The Paired CxC table - ordinal

the_paired_cxc_table_ordinal(n, a = seq_len(nrow(n)), alpha = 0.05)

Arguments

n

the total number of observations

a

scores assigned to the outcome categories

alpha

the nominal level, e.g. 0.05 for 95% CIs

Value

NULL. This function should be called for its printed output.

Examples

the_paired_cxc_table_ordinal(fischer_1999, c(8, 3.5, 0, -3.5, -8))
#> 
#> Scores: 8  3.5  0  -3.5  -8  
#> Sample marginal mean scores (rows)  = -0.814
#> Sample maringal mean scores (cols)  = -2.508
#> Estimate of the difference =  1.694
#> 
#> Method                                           95% CI       P-value  (test statistic)
#> --------------------------------------------------------------------------------------
#> Wald CI and test for marginal mean scores  ( 0.935 to  2.454)  0.0000  (Z = 4.372)
#> Score CI and test for marginal mean scores ( 0.877 to  2.512)  0.0000  (Z = 4.063)
#> --------------------------------------------------------------------------------------
#> 
#> Inference for tau
#> -----------------
#> Wald:       estimate = 0.2391 (95% CI 0.1182 to 0.3600); P = 0.00011, Z =  3.877
#> Wald logit: estimate = 0.2391 (95% CI 0.1151 to 0.3558); P = 0.00019, Z =  3.727
#> 
#> Inference for alpha
#> -------------------
#> Wald:       estimate = 0.6196 (95% CI 0.5591 to 0.6800); P = 0.00011, Z =  3.877
#> Wald logit: estimate = 0.6196 (95% CI 0.5576 to 0.6779); P = 0.00019, Z =  3.727
#>