Wald_test_and_CI_marginal_mean_scores_paired_cxc {contingencytables} | R Documentation |
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
)
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 |
An object of the contingencytables_result class,
basically a subclass of base::list()
. Use the utils::str()
function
to see the specific elements returned.
# 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)