Description Usage Arguments Value
View source: R/lopt logistic pseudononmy.R View source: R/lopt_logistic_pseudononmy.R
Allocate treatments according to an information matrix based optimality criterion allowing for a pseudo-nonmyopic approach. We assume a logistic model for the response.
1 2 3 4 |
covar |
a dataframe for the covariates |
true.beta |
the true parameter values of the data generating mechanism |
threshold |
the cut-off value for hypothesis tests |
kappa |
the value of probability at which weights are set at zero |
init |
the number of units in the initial design |
int |
set to T if you allow for treatment-covariate interactions in the model, NULL otherwise |
cr.lossfunc |
a function for the optimality criterion to minimize which is appropriate for linear combinations of parameters |
k |
number of "outer loops" in the coordinate exchange algorithm |
wt |
set to T if the above lossfunction is weighted, NULL otherwise |
sim |
number of trajectories to simulate |
z.probs |
vector of probabilities for each level of covariate z |
same.start |
the design matrix to be used for the initial design. If set to NULL, function generates initial design. |
rand.start |
If set to T, function generates an initial design randomly. Else, coordinate exchange is used. |
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. |
bayes |
set to T if bayesglm is used instead of glm. Default prior assumed. |
u |
vector of uniform random numbers for generating responses. If set to NULL, responses generated from the binomial distribution. |
prior.default |
set to T if default priors for bayesglm is used. If set to False and bayes=T, normal priors used. |
coordex |
set to T if the coordinate exchange algorithm is used to assign treatments in the trajectory. Sequential approach used otherwsise. |
true.bvcov |
if set to T, use the true parameter values to compute obejctive function. If set to NULL, use estimated parameter values. |
... |
further arguments to be passed to <lossfunc> |
Design matrix D, values of the objective function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.