# sample_with_prev_treatment

0th

Percentile

##### Sample Under Consideration of an Already Treated Subset of Units

Given a previous treatment assignment vector for a subset of all observations that treatment assigment is desired for, the function computes a treatment assignment vector for which the previously assigned units are not changed. At a later step, the previously assigned units are also taken into consideration for computation of the score value, the min MSE function, to achieve balanced treatment groups.

Keywords
treatment, optim, Assignment, MSE
##### Usage
sample_with_prev_treatment(prev_treatment, n_treatments)
##### Arguments
prev_treatment

takes a numerical vector of partial treatment assignment as argument, and -- for a start -- assigns the missing units (where the value is NA) to a random treatment group, while maintaining the same proportions in the groups.

n_treatments

specifies the number of treatment groups desired (in addition to the control group). They might be more than the ones already defined in prev_treatment.

##### Value

Returns a treatment assignment vector where the observations given by prev_treatment are unmodified, and the others are assigned to a group.

##### Aliases
• sample_with_prev_treatment
##### Examples
# NOT RUN {
sample_with_prev_treatment(prev_treatment = c(0, NA, NA, NA, 1, NA, NA, NA, NA, NA),
n_treatments = 2)
# }

Documentation reproduced from package minMSE, version 0.1.1, License: GNU General Public License

### Community examples

Looks like there are no examples yet.