Learn R Programming

NSM3 (version 1.1)

pFligPoli: Fligner-Policello

Description

Function to compute the P-value for the observed Fligner-Policello U statistic.

Usage

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

Arguments

Value

Returns a list with "NSM3Ch5p" class containing the following components:mnumber of observations in the first data group (X)nnumber of observations in the second data group (Y)obs.statthe observed U statisticp.valupper tail P-valuetwo.sidedtwo-sided P-value

Details

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

Examples

Run this code
##Hollander, Wolfe, Chicken Example 4.5 Plasma Glucose in Geese
plasma.glucose<-list(healthy.geese = c(297, 340, 325, 227, 277, 337, 
250, 290), poisoned.geese = c(293, 291, 289, 430, 510, 353, 318
))

pFligPoli(plasma.glucose)

Run the code above in your browser using DataLab