Description Usage Arguments Value Author(s) References Examples
Computes Satterthwaite's approximation to the degrees of freedom.
1 | satterthwaite(var, n, df=n-1)
|
var |
A vector of numeric values giving the independent sample variances. |
n |
A vector of integers giving the sample sizes. |
df |
A vector of numeric values giving the degrees of freedom for the independent sample variances. Default is |
A numeric value giving the pooled degrees of freedom according to the Satterthwaite approximation.
Philip Pallmann pallmann@biostat.uni-hannover.de
Satterthwaite, F. E. (1941) Synthesis of variance. Psychometrika, 6(5), 309–316.
Satterthwaite, F. E. (1946) An approximate distribution of estimates of variance components. Biometrics Bulletin, 2(6), 110–114.
1 2 3 4 5 6 7 8 | # Perfectly homoscedastic
satterthwaite(rep(2, 3), rep(10, 3))
# Mildly heteroscedastic
satterthwaite(c(1.9, 2, 2.1), rep(10, 3))
# Strongly heteroscedastic
satterthwaite(1:3, rep(10, 3))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.