ran.group | R Documentation |
Called by rgr.agree (and potentially other functions). The ran.group function randomly mixes data and applies a function to the pseudo groups. Pseudo group IDs match real group IDs in terms of size.
ran.group(x,grpid,fun,...)
x |
A matrix or vector containing data to be randomly sorted. |
grpid |
A vector containing a group identifier. |
fun |
A function to be applied to the observations within each random group. |
... |
Additional arguments to fun. |
A vector containing the results of applying the function to each random group.
Paul Bliese pdbliese@gmail.com
Bliese, P. D., & Halverson, R. R. (2002). Using random group resampling in multilevel research. Leadership Quarterly, 13, 53-68.
rgr.agree
data(bh1996) ran.group(bh1996$HRS,bh1996$GRP,mean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.