simfuture: Allocate treatments according to an information matrix based...

Description Usage Arguments Value

View source: R/pseudononmy.R

Description

Allocate treatments according to an information matrix based optimality criterion allowing for a pseudo-nonmyopic approach. We assume a linear model for the response.

Usage

1
2
simfuture(covar, sim, int = NULL, z.probs, lossfunc, stoc = T,
  same.start = NULL, coordex = NULL, ...)

Arguments

covar

a dataframe for the covariates

sim

number of trajectories to simulate

int

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

z.probs

vector of probabilities for each level of covariate z

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.

same.start

the design matrix to be used for the initial design. If set to NULL, function generates initial design.

coordex

set to T if coordinate exchange algorithm is used to allocate treatments in the trajectory, set to NULL for sequential approach.

...

further arguments to be passed to <lossfunc>

Value

Design matrix D, value of objective function


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