Description Usage Arguments Value
View source: R/rand-mechanisms.R
Generates a room assignment vector (or a room assignment matrix) depending on 'n.draws'. For a vector, the entry at index 'i' represents the room to which unit 'i' is to be assigned.
1 | rL(N, M, n.draws = 10)
|
N |
An integer. The total number of units in the population. |
M |
An integer. The number of unit per room. |
n.draws |
An integer. The number of room assignments vectors to return (defaults to 10). |
If 'n.draws = 1' then returns a vector of room assignments. If ‘n.draws > 1’, returns a matrix where each row represents a room assignment vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.