Description Usage Arguments Value Author(s)
View source: R/01.GenerateData.R
A binary treatment is assigned as a Bernoulli(p_i) random variable where p_i is an individual-specific treatment probability (true propensity score) calculated from covariate values and coefficients.
1 | AssignTreatment(dfX, alpha0, alphaX)
|
dfX |
data frame including covariates |
alpha0 |
a scalar value coeffcient for the intercept |
alphaX |
a vector of length 7 specifiying true coefficients for 7 covariates |
data frame with additional true propensity score pA and treatment A.
Kazuki Yoshida
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.