The Wald test and confidence interval for the difference between marginal mean scores

Described in Chapter 9 "The Paired cxc Table"

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

Arguments

n

the observed table (a cxc matrix)

a

scores assigned to the outcome categories

alpha

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

Value

An object of the contingencytables_result class, basically a subclass of base::list(). Use the utils::str() function to see the specific elements returned.

Examples

# A comparison between serial and retrospective measurements
# (Fischer et al., 1999)
a <- c(8, 3.5, 0, -3.5, -8)
Wald_test_and_CI_marginal_mean_scores_paired_cxc(fischer_1999, a)
#> The Wald test: P = 0.00001, Z =  4.372
#> The Wald CI: estimate = 1.6942 (95% CI 0.9347 to 2.4537)