HollBivSym: Hollander Bivariate Symmetry

Description Usage Arguments Details Value Author(s) Examples

View source: R/HollBivSym.R

Description

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

Usage

1

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.

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))

Value

Returns the observed Hollander A statistic.

Author(s)

Grant Schneider

Examples

1
2
3
4
5
6
7
8
9
##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)

NSM3 documentation built on April 6, 2021, 5:05 p.m.

Related to HollBivSym in NSM3...