nonpar (version 1.0.0)

stuart.maxwell:

Description

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

Usage

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.

Examples

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

Run the code above in your browser using DataCamp Workspace