Description Usage Arguments Value Examples
Simulates completely randomized design and randomized block designs from a population of experimental units with underlying response values y and underlying other variable values x (possibly lurking)
1 2 3 4 5 6 7 8 9 |
x |
a set of lurking values which are correlated with the response |
y |
a set of response values |
corr |
the correlation between the response and lurking variable |
size |
the size of the treatment groups |
n.treatments |
the number of treatments |
n.rep |
the number of Monte Carlo replicates |
... |
additional parameters which are passed to |
If the ouput of xdesign is assigned to a variable, then a list is returned with the following components:
block.means |
a vector of the means of the lurking variable from each replicate of the simulation stored by treatment number within replicate number |
treat.means |
a vector of the means of the response variable from each replicate of the simulation stored by treatment number within replicate number |
ind |
a vector containing the treatment group numbers. Note that there will be twice as many group numbers as there are treatments corresponding to the simulations done using a completely randomized design and the simulations done using a randomized block design |
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.