Description Usage Arguments Value
Assuming a linear model for the response, allocate treatments randomly.
1 2 | linear.rand(covar, lossfunc = calc.D, int = NULL, init = 1,
same.start = NULL, ...)
|
covar |
a dataframe for the covariates |
lossfunc |
the objective function to minimize |
int |
set to T if you allow for treatment-covariate interactions in the model, NULL otherwise |
init |
the number of units in the initial design, by default set to 1 |
same.start |
the design matrix to be used for the initial design. If set to NULL, function generates initial design. |
... |
further arguments to be passed to <lossfunc> |
design matrix and value of objective function at each sample size
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.