coordex: Allocate treatment using coordinate exchange algorithm,...

Description Usage Arguments Value

View source: R/linear.R

Description

Allocate treatment using coordinate exchange algorithm, assuming a linear model for the response which has an intercept, an effect for each covariate, an effect for the treatment, and allows for covariate-treatment interactions

Usage

1
coordex(covar, k, lossfunc, int = NULL, ...)

Arguments

covar

a dataframe for the covariates

k

the number of random starting designs to use

lossfunc

the objective function to minimize

int

set to T if you allow for treatment-covariate interactions in the model, NULL otherwise

...

Further arguments to be passed to <lossfunc>

Value

design matrix


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