logit.mse: Allocate treatments according to the MSE matrix when a...

Description Usage Arguments Value

View source: R/mse.R

Description

Allocate treatments according to the MSE matrix when a logisic model for the response is assumed. We simulate responses sequentially.

Usage

1
2
logit.mse(covar, true.beta, init, int = NULL, lossfunc = calc.y.D,
  epsilon = 1e-05, same.start = NULL, true.bvcov = NULL, ...)

Arguments

covar

a dataframe for the covariates

true.beta

the true parameter values of the data generating mechanism

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

lossfunc

a function for the objective function to minimize

epsilon

a small real number used for regularization. If set to zero, no regularization takes place

same.start

set to the intial design if desired or set to NULL otherwise

true.bvcov

set to the true values of beta if the mse matrix is to be computed using the true values

...

further arguments to be passed to <logit.coord> and <lossfunc>

Value

the design matrix D, responses y, all estimates of beta, final estimate of beta, probabilities of treatment assignment, proportion of favorable responses, value of objective function, trace of var-covar matrix, trace of bias matrix, trace of mse matrix, determinant of mse matrix


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