Description Usage Arguments Value
View source: R/rand-mechanisms.R
'rsW' draws a random permutation of 'W0'. If 'A' is null, then the permutation will be drawn uniformly at random from the symmetric group 'S'. If A is not null, then the permutation will be drawn from 'S_A', the stabilizer of 'A' in the symmetric group.
1 |
W0 |
An exposure vector. |
A |
A vector of attributes. Should be of the same length as 'W0'. |
n.draws |
An integer. The number of permutations of 'W0' that should be drawn (defaults to 10). |
A matrix whose rows are random permutations of 'W0'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.