linear.rand: Assuming a linear model for the response, allocate treatments...

Description Usage Arguments Value

View source: R/linear.R

Description

Assuming a linear model for the response, allocate treatments randomly.

Usage

1
2
linear.rand(covar, lossfunc = calc.D, int = NULL, init = 1,
  same.start = NULL, ...)

Arguments

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>

Value

design matrix and value of objective function at each sample size


mst1g15/biasedcoin documentation built on Nov. 26, 2019, 4:01 a.m.