Description Usage Arguments Details Value Author(s) References See Also Examples
Robust test of scale for paired samples.
1 2 3 4 5 6 7 | grambsch.Var.test(x, ...)
## Default S3 method:
grambsch.Var.test(x, y = NULL, alternative = c("two.sided", "less", "greater"),...)
## S3 method for class 'paired'
grambsch.Var.test(x, ...)
|
x |
first sample or an object of class paired. |
y |
second sample. |
alternative |
alternative hypothesis. |
... |
further arguments to be passed to or from methods. |
Denoting s=x+y and d=x-y, the test proposed by Grambsch (1994, and called by the author 'modified Pitman test') is based on the fact that var(x)-var(y)=cov(x+y,x-y)=cov(s,d). The values z=(s-mean(s))(d-mean(d)) can be tested for null expectation using a classical t test in order to compare the two variances. Note that the p value is computed using the normal distribution.
A list with class "htest" containing the following components:
statistic |
the value of the F-statistic. |
p.value |
the p-value for the test. |
null.value |
the specified hypothesized value of the ratio of variances (=1!) |
alternative |
a character string describing the alternative hypothesis. |
method |
a character string indicating what type of test was performed. |
data.name |
a character string giving the name(s) of the data. |
Stephane CHAMPELY
Grambsch,P.M. (1994) Simple robust tests for scale differences in paired data. Biometrika, 81, 359-372.
Var.test, bonettseier.Var.test
1 2 3 4 5 6 7 | z<-rnorm(20)
x<-rnorm(20)+z
y<-(rnorm(20)+z)*2
grambsch.Var.test(x,y)
p<-paired(x,y)
grambsch.Var.test(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.