data.scale.xy: Data Transformation for Testing Equality of Variability...

Description Usage Arguments Value Examples

View source: R/data.scale.xy.R

Description

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

Usage

1
2
3
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

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

intervcomp documentation built on July 12, 2019, 5:04 p.m.