Description Usage Arguments Value Author(s) Examples
View source: R/stuart.maxwell.R
This function runs the Stuart-Maxwell Test, an extension of McNemar's for a 3x3 matrix.
1 | stuart.maxwell(X, alpha = NULL)
|
X |
A 3x3 matrix of frequencies. |
alpha |
The Significance level, defaults to 0.05. |
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. |
D. Lukke Sweet
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))
|
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.