Called by graph.ran.mean (and potentially other functions)
to randomly mix data and create new pseudo group ID variables. Pseudo group IDs match
real group IDs in terms of size.
Usage
mix.data(x,grpid)
Arguments
x
A matrix or vector containing data to be randomly sorted.
grpid
A vector containing a group identifier.
Value
newid
A pseudo group ID.
grpid
The real group ID.
x
The values in x arranged as belonging to newid.
References
Bliese, P. D., & Halverson, R. R. (2002). Using random group resampling in multilevel research. Leadership Quarterly, 13, 53-68.