data.scale.xy {intervcomp}R Documentation

Data Transformation for Testing Equality of Variability Measures

Description

Data transformation for testing equality of variability measures (mean absolute deviation from median or variance).

Usage

data.scale.xy(x, y, scale.option = c("Levene.Med.0", "Levene.Med",
  "Levene.Med.00", "Variance"), scale.adj = TRUE, scale.00 = 2,
  paired = FALSE)

Arguments

x

A vector specifying the first sample.

y

A vector specifying the second sample.

scale.option

A character string specifying the transformation on each observation; "Levene.med" for Levene's transformation (absolute difference from the sample median), "Levene.med.0" for Levene's transformation with zero removal for odd sample(s), "Levene.med.00" for Levene's transformation with zero removal for both odd and even sample(s), and "Variance" for squared difference from the sample mean. The default option is "Levene.med.0".

scale.adj

A boolean specifying whether or not any constant should be multiplied to each transformed observation. This is useful to obtain unbiased estimates. The default option is TRUE.

scale.00

A scale to be applied for an even sample when "Levene.med.00" is chosen. The default option is 2, but the square root of 2 is another viable option.

paired

A boolean specifying whether or not the samples are paired or independent. The default option is FALSE.

Value

trans.x

Transformed first sample.

trans.y

Transformed second sample.

rho

Sample correlation coefficient. For independent samples, it returns a NULL.

Examples

 set.seed(123)
 x<-runif(10)
 y<-runif(15)
 data.scale.xy(x, y, scale.option="Levene.Med.0", scale.adj=TRUE, paired=FALSE)


[Package intervcomp version 0.1.2 Index]