Expands covarites to up to three binary columns for at least one, sporadic, or frequent occrence of each covariate.
a matrix or something that can be coerced with
Enables some debuging checks which slow things down, but may yield useful warnings or errors.
covars is expanded to three binary columns.
The first column indicates that the value of
x is non-zero.
The second indicates that the value of
x ≥ the median of non-zero values of
The third indicates that the value of
x ≥ the 75th percentile of non-zero values of
Non-unique columns per covariate are dropped.
Groups of columns of the returned matrix are in the same order of columns in
covars has column names, the returned matrix will have the same column names with suffexes
"_frequent" for the first, second, and third expanded columns, respectively.
Schneeweiss, S., Rassen, J. A., Glynn, R. J., Avorn, J., Mogun, H., & Brookhart, M. A. (2009). High-dimensional propensity score adjustment in studies of treatment effects using health care claims data. Epidemiology (Cambridge, Mass.), 20(4), 512.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.