Learn R Programming

PairedData (version 0.9.1)

grambsch.test: Grambsch test of scale for paired samples

Description

Robust test of scale for paired samples.

Usage

grambsch.test(x, ...)

## S3 method for class 'default':
grambsch.test(x, y = NULL, alternative = c("two.sided", "less", "greater"),...)

## S3 method for class 'paired':
grambsch.test(x, ...)

Arguments

x
first sample or an object of class paired.
y
second sample.
alternative
alternative hypothesis.
...
further arguments to be passed to or from methods.

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)

p<-paired(x,y)
grambsch.test(p)

Run the code above in your browser using DataLab