permute_within_groups: Permute within groups

Description Usage Arguments Value

View source: R/k_sample.R View source: R/utils.R

Description

Permute values within groups

Permutation of condition within each group. This is a helper function for stratified permutation tests.

Usage

1
2
3

Arguments

x

vector of exchangeable values

group

vector of fixed group assignments

x

A vector of treatment indicators

group

A vector indicating group membership

Value

a vector of length(x)

The within-group permuted x


statlab/permuter documentation built on May 30, 2019, 9:45 a.m.