prepareShuffle:
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