prepareShuffle {shuffle}R Documentation

Prerprocess for the shuffle estimator

Description

prepareShuffle computes the averaging matrices and normalizing constants for the shuffle estimator. It can be run once for all data vectors sharing the design.

Usage

prepareShuffle(des, perm)

Arguments

des

A design vector or matrix

perm

The shuffling permutation

Value

m

The number of treatments

ns

An m-length vector with the number of repeats for each treatment. For balanced designs with n repeats, ns=rep(n,m)

B

The averaging matrix according to the design

G

1/T for T the number of measurements

norm

The value by which to correct the difference of variances [1/(facA-facB)]

facA

The signal coefficient of the original design

facB

The signal variance coefficient of the permuted design

Author(s)

Yuval Benjamini

References

Benjamini and Yu (2013)

See Also

getAverage getNormalizer


[Package shuffle version 1.0.1 Index]