Description Usage Arguments Details Value Author(s) References See Also Examples
Estimates the ICC and confidence intervals using the variance components from a one-way ANOVA.
1 |
x |
column name indicating individual or group id in the dataframe |
y |
column name indicating measurements in the dataframe |
data |
a dataframe containing |
alpha |
the alpha level to use when estimating the confidence interval. Default is 0.05. |
CI.type |
the particular confidence interval to estimate. Can be specified by just the first letter of the name. See Details section for more. |
If the dependent variable, x
, is not a factor, then the function will change it into a factor and produce a warning message.
The confidence interval can be estimated from one of two methods included here. CIs of the type "THD"
are based upon the exact confidence limit equation in Searle (1971) and can be used for unbalanced data (see Thomas & Hultquist 1978; Donner 1979).
CIs of the type "Smith"
are based upon the approximate formulas for the standard error of the ICC estimate (Smith 1956).
ICC |
the intraclass correlation coefficient |
LowerCI |
the lower confidence interval limit, where the confidence level is set by |
UpperCI |
the upper confidence interval limit, where the confidence level is set by |
N |
the total number of individuals or groups used in the analysis |
k |
the number of measurements per individual or group. In an unbalanced design, k is always less than the mean number of measurements per individual/group and is calculated using the equation in Lessells and Boag (1987). |
varw |
the within individual or group variance |
vara |
the among individual or group variance |
Matthew Wolak matthewwolak@gmail.com
C.M. Lessells and P.T. Boag. 1987. The Auk, 104(1):116-121. Searle, S.R. 1971. Linear Models. New York: Wiley. Thomas, J.D. and Hultquist, R.A. 1978. Annals of Statistics, 6:582-587. Donner, A. 1979. American Journal of Epidemiology, 110:335-342. Smith, C.A.B. 1956. Annals of Human Genetics, 21:363-373.
1 2 | data(ChickWeight)
ICCest(Chick, weight, data=ChickWeight, CI.type="S")
|
$ICC
[1] 0.1077609
$LowerCI
[1] 0.0392255
$UpperCI
[1] 0.1762962
$N
[1] 50
$k
[1] 11.55519
$varw
[1] 4516.005
$vara
[1] 545.4238
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.