brxx_ICC {brxx} | R Documentation |
brxx_ICC: Bayesian Estimation of Reliability from ICC
Description
This function estimates reliability from intraclass correlation coefficient
Usage
brxx_ICC(mod, alpha, beta, CI, items)
Arguments
mod |
A mixed effects model object estimated by blmer. |
alpha |
Prior true score variance (subject variance) |
beta |
Prior error variance (residual variance) |
CI |
Credible interval quantile, as a decimal (ie, for 95 percent, 0.95). |
items |
Number of test items. |
Value
Returns estimated median and quantile based credible limits for ICC.
Examples
your_data_wide=mvrnorm(20,c(0,0),matrix(c(1,0.8,0.8,1),nrow=2,ncol=2))
your_data_long=c(as.vector(your_data_wide[,1]),as.vector(your_data_wide[,2]))
time=c(rep(0,20),rep(1,20))
id=c(rep(1:20,2))
mod=blmer(your_data_long~time+(1|id))
brxx_ICC(mod=mod,alpha=3.51,beta=1.75,CI=0.95,items=10)
[Package brxx version 0.1.2 Index]