Description Usage Arguments Value
View source: R/paper_treatment_functions.R
Generates the four different treatment functions used for simulations in the paper.
1 | paper_treatment_functions(target_mean = 0.425)
|
target_mean |
Desired mean for each of the treatment probabilities, should be in (0, 1). |
List of four functions that take in a matrix and output a vector of probabilities:
constant_treat_prob
Just repeats target_mean
logistic_treat_prob
Computes a logistic style relationship between the data matrix and the output vector
sparse_treat_prob
Based on the sign of the first data matrix column; gives a number a bit above the mean and a bit below.
sparse_nonlin_treat_prob
Cubic logit function of the first vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.