assess_recurrence: assess_recurrence

Description Usage Arguments Details Value Author(s) References

View source: R/assess_recurrence.R


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 as.matrix of covariates


Enables some debuging checks which slow things down, but may yield useful warnings or errors.


Each column x of 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 x. The third indicates that the value of x the 75th percentile of non-zero values of x. Non-unique columns per covariate are dropped.

Groups of columns of the returned matrix are in the same order of columns in covars.

If covars has column names, the returned matrix will have the same column names with suffexes "_once", "_sporadic", and "_frequent" for the first, second, and third expanded columns, respectively.


Expanded covars matrix.


Sam Lendle


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.

lendle/hdps documentation built on Aug. 18, 2017, 12:11 a.m.