ran.group: Randomly mix grouped data and return function results

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

Description

This function is 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.

Usage

1
ran.group(x,grpid,fun,...)

Arguments

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.

Value

A vector containing the results of applying the function to each random group.

Author(s)

Paul Bliese paul.bliese@moore.sc.edu

References

Bliese, P. D., & Halverson, R. R. (2002). Using random group resampling in multilevel research. Leadership Quarterly, 13, 53-68.

See Also

rgr.agree

Examples

1
2


Search within the multilevel package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.