Learn R Programming

PairedData (version 0.5)

grambsch.test: Grambsch test of scale for paired samples

Description

Robust test of scale for paired samples

Usage

grambsch.test(x, y = NULL, alternative = c("two.sided", "less", "greater"))

Arguments

x
First sample
y
Second sample
alternative
Alternative hypothesis

Value

  • A list with class "htest" containing the following components:
  • statisticThe value of the F-statistic
  • p.valueThe p-value for the test
  • null.valueThe specified hypothesized value of the ratio of variances (=1!)
  • alternativeA character string describing the alternative hypothesis
  • methodA character string indicating what type of test was performed
  • data.nameA character string giving the name(s) of the data

References

P.M. Grambsch. Simple robust tests for scale differences in paired data. Biometrika, 81, 359-372, 1994.

See Also

var.test, pitman.morgan.test, bonett.seier.test

Examples

Run this code
z<-rnorm(20)
x<-rnorm(20)+z
y<-(rnorm(20)+z)*2
grambsch.test(x,y)

Run the code above in your browser using DataLab