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.

1 | ```
assess_recurrence(covars, debug = FALSE)
``` |

`covars` |
a matrix or something that can be coerced with |

`debug` |
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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.