Learn R Programming

NSM3 (version 1.1)

pUmbrPU: Mack-Wolfe Peak Unknown

Description

Function to compute the P-value for the observed Mack-Wolfe Peak Unknown A_p-hat distribution.

Usage

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

Arguments

Value

Returns a list with "NSM3Ch6p" class containing the following components:na vector containing the number of observations in each of the data groupsobs.statthe observed A_p-hat statisticp.valthe upper tail P-value

Details

The data entry is intended to be flexible, so that the groups of data can be entered in either of two ways. For data a=1,2 and b=3,4,5 the following are equivalent: pUmbrPU(x=list(c(1,2),c(3,4,5))) pUmbrPU(x=c(1,2,3,4,5),g=c(1,1,2,2,2))

Examples

Run this code
##Hollander-Wolfe-Chicken Example 6.4 Learning Comprehension and Age
wechsler<-list("16-19"=c(8.62,9.94,10.06),"20-34"=c(9.85,10.43,11.31),"35-54"=c(9.98,10.69,11.40),
"55-69"=c(9.12,9.89,10.57),"70+"=c(4.80,9.18,9.27))

#pUmbrPU(wechsler,method="Monte Carlo",n.mc=20000)
pUmbrPU(wechsler,method="Monte Carlo",n.mc=1000)

Run the code above in your browser using DataLab