stuart.maxwell: The Stuart-Maxwell Test

Description Usage Arguments Value Author(s) Examples

View source: R/stuart.maxwell.R

Description

This function runs the Stuart-Maxwell Test, an extension of McNemar's for a 3x3 matrix.

Usage

1
stuart.maxwell(X, alpha = NULL)

Arguments

X

A 3x3 matrix of frequencies.

alpha

The Significance level, defaults to 0.05.

Value

Test Statistic

The Test Statistic for the Stuart-Maxwell Test.

Significance Level

Returns the alpha value.

P-value

Returns the p-value from the Stuart-Maxwell Test.

Author(s)

D. Lukke Sweet

Examples

1
2
  ## Run the Stuart-Maxwell Test on the 3x3 Matrix.
  stuart.maxwell(matrix(c(12, 30, 13, 7, 70, 34, 3, 20, 32), 3,3))

Example output

 Stuart-Maxwell Test 
 
 H0: There is no difference in the distribution between the paired groups. 
 HA: There is a difference in the distribution between the paired groups. 
 
 Test Statistic = 23.5709322524609 
 
 Degrees of Freedom = 2 
 
 Significance Level = 0.05 
 The p-value is  7.61442467334117e-06 
 There is enough evidence to conclude that there is a difference in the distribution between the paired groups. 
 

nonpar documentation built on April 29, 2020, 9:36 a.m.