Learn R Programming

NSM3 (version 1.18)

pNDWol: Nemenyi, Damico-Wolfe

Description

Function to compute the P-value for the observed Nemenyi, Damico-Wolfe Y statistic.

Usage

pNDWol(x,g=NA,method=NA, n.mc=10000)

Value

Returns a list with "NSM3Ch6MCp" class containing the following components:

n

number of observations in the k data groups, with the first group representing the control

obs.stat

the observed Y statistic for each treatment vs. control comparison

p.val

upper tail P-value corresponding to each of the k-1 observed Y statistics

Arguments

x

Either a list or a vector containing the data.

g

If x is a vector, g is a required vector of group labels. Otherwise, not used.

method

Either "Exact", "Monte Carlo" or "Asymptotic", indicating the desired distribution. When method=NA, "Exact" will be used if the number of permutations is 10,000 or less. Otherwise, "Monte Carlo" will be used.

n.mc

If method="Monte Carlo", the number of Monte Carlo samples used to estimate the distribution. Otherwise, not used.

Author

Grant Schneider

Examples

Run this code
##Hollander-Wolfe-Chicken Example 6.8 Motivational Effect of Knowledge of Performance
motivational.effect<-list(no.Info = c(40, 35, 38, 43, 44, 41), 
rough.Info = c(38, 40, 47, 44, 40, 42), 
accurate.Info = c(48, 40, 45, 43, 46, 44))

pNDWol(motivational.effect,method="Asymptotic")
pNDWol(motivational.effect,method="Monte Carlo")

Run the code above in your browser using DataLab