GmeanRel: Group Mean Reliability from an lme model (nlme package)

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/multilevel.R

Description

This function calculates the group-mean reliability from a linear mixed effects (lme) model. If group sizes are identical, the group-mean reliabilty estimate equals the ICC(2) estimate from an ANOVA model. When group sizes differ, however, a group-mean reliability estimate is calculated for each group based on the group size. The group-mean reliability estimate for each group is based upon the Spearman-Brown formula, the overall ICC, and group size for each group.

Usage

1
GmeanRel(object)

Arguments

object

A Linear Mixed Effect (lme) object.

Value

ICC

Intraclass Correlation Coefficient

Group

A vector containing all the group names.

GrpSize

A vector containing all the group sizes.

MeanRel

A vector containing the group-mean reliability estimate for each group.

Author(s)

Paul Bliese [email protected]

References

Bliese, P. D. (2000). Within-group agreement, non-independence, and reliability: Implications for data aggregation and Analysis. In K. J. Klein & S. W. Kozlowski (Eds.), Multilevel Theory, Research, and Methods in Organizations (pp. 349-381). San Francisco, CA: Jossey-Bass, Inc.

Bartko, J.J. (1976). On various intraclass correlation reliability coefficients. Psychological Bulletin, 83, 762-765.

See Also

ICC1 ICC2 lme

Examples

1
2
3
4
data(bh1996)
library(nlme)
tmod<-lme(WBEING~1,random=~1|GRP,data=bh1996)
GmeanRel(tmod)

Example output

Loading required package: nlme
Loading required package: MASS
$ICC
[1] 0.0433792

$Group
 [1] 1  2  3  4  5  6  7  8  9  10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
[26] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
[51] 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
[76] 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
99 Levels: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ... 99

$GrpSize
 [1]  74  63  96  42 102  28  29  34  39  65  39  36  88  94  81  46  95  81  42
[20]  64  92  44  80  96  32  57 102  34  58  35  42  48  31  99  92  85  49  56
[39]  43  96  62  43 100  53  75 101  42  63  78  29  36  37  33  63  55  76  98
[58]  64  86  94  52 101  50  52  74  62  94  44  33 100  81  15  41  70  59  86
[77]  48  67  57  50 191  57 226 161 160 220 172  81 106 223  93 114 176 110 104
[96]  44  68  16  27

$MeanRel
 [1] 0.7704118 0.7407188 0.8131974 0.6557119 0.8222324 0.5594124 0.5680425
 [8] 0.6065740 0.6387942 0.7466757 0.6387942 0.6201281 0.7996182 0.8099781
[15] 0.7860070 0.6759485 0.8116015 0.7860070 0.6557119 0.7437318 0.8066459
[22] 0.6661366 0.7839101 0.8131974 0.5920168 0.7210396 0.8222324 0.6065740
[29] 0.7245243 0.6134698 0.6557119 0.6852002 0.5843266 0.8178268 0.8066459
[36] 0.7940028 0.6896307 0.7174656 0.6610043 0.8131974 0.7376340 0.6610043
[43] 0.8193194 0.7061721 0.7727774 0.8207877 0.6557119 0.7407188 0.7795905
[50] 0.5680425 0.6201281 0.6265609 0.5994276 0.7407188 0.7137988 0.7750948
[57] 0.8163094 0.7437318 0.7959092 0.8099781 0.7022043 0.8207877 0.6939382
[64] 0.7022043 0.7704118 0.7376340 0.8099781 0.6661366 0.5994276 0.8193194
[71] 0.7860070 0.4048307 0.6502515 0.7604354 0.7279231 0.7959092 0.6852002
[78] 0.7523650 0.7210396 0.6939382 0.8964926 0.7210396 0.9110974 0.8795290
[85] 0.8788673 0.9088936 0.8863580 0.7860070 0.8277853 0.9100090 0.8083265
[92] 0.8379117 0.8886532 0.8330019 0.8250529 0.6661366 0.7551149 0.4204715
[99] 0.5504304

attr(,"class")
[1] "gmeanrel"

multilevel documentation built on May 29, 2017, 5:38 p.m.