Learn R Programming

NSM3 (version 1.18)

HollBivSym: Hollander Bivariate Symmetry

Description

Function to compute the Hollander A statistic for testing bivariate symmetry.

Usage

HollBivSym(x,y=NULL)

Value

Returns the observed Hollander A statistic.

Arguments

x

Either a matrix containing both groups of data or a vector containing the first group of data.

y

If x is a vector, y is a required vector containing the second group of data. Otherwise, not used.

Author

Grant Schneider

Details

The data entry is intended to be flexible, so that the data can be entered in either of two ways. The following are equivalent:

HollBivSym(x=matrix(c(1,2,3,4,5,6),ncol=2,byrow=T)) HollBivSym(x=c(1,3,5),y=c(2,4,6))

Examples

Run this code

##Hollander-Wolfe-Chicken Table 3.16 example
recipient<-c(61.4,63.3,63.7,80,77.3,84,105)
donor<-c(70.8,89.2,65.8,67.1,87.3,85.1,88.1)

HollBivSym(recipient,donor)

##Or, equivalently
table3.16<-matrix(c(61.4,63.3,63.7,80,77.3,84,105,70.8,89.2,65.8,67.1,87.3,85.1,88.1),ncol=2)
HollBivSym(table3.16)

Run the code above in your browser using DataLab