Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

samp.between.within

Shuffles a sequence


Description

Used to generate a permutation of a sequence 1:length(inner.lev). blocks of observations defined by inner.lev are permutted within blocks defined by outer.lev

Usage

samp.between.within(inner.lev, outer.lev)

Arguments

inner.lev

a vector containing the groups to be permuted.

outer.lev

a vector containing teh blocks within which observations are to be kept.

Value

a vector 1:length(lev) (with blocks defined by data) randomly permuted. Usually, one passes the result to reorder observations in a data set in order to carry out permutation-based tests

See Also


hierfstat

Estimation and Tests of Hierarchical F-Statistics

v0.5-10
GPL (>= 2)
Authors
Jerome Goudet [aut, cre], Thibaut Jombart [aut], Zhian N. Kamvar [ctb], Eric Archer [ctb], Olivier Hardy [ctb]
Initial release
2021-11-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.