linear.nonmyop.dyn: Allocate treatments according to an information matrix based...

Description Usage Arguments Value

View source: R/linear nonmyop.R View source: R/linear_nonmyop.R

Description

Allocate treatments according to an information matrix based optimality criterion allowing for a non-myopic approach. Allow for dynamic covariates. We assume a linear model for the response and simulate responses sequentially.

Usage

1
2
linear.nonmyop.dyn(covar, init, z.probs, k, N, int = NULL,
  lossfunc = calc.D, stoc = F, ...)

Arguments

covar

a dataframe for the covariates

init

the number of units in the initial design

z.probs

vector of probabilities for each level of covariate z

k

integer for number of "outer" loops in coordinate exchange algorithm for initial design

N

natural number greater than 0 for horizon

int

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

lossfunc

the objective function to minimize

stoc

set to T if treatments are allocated using a stochastic method where the probability is determined by the optimality crtierion. Set to F if treatments are allocated deterministically

...

further arguments to be passed to <lossfunc>

Value

Design matrix D


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