Description Usage Arguments Value Examples
Takes any numeric data in events file (e.g., laboratory value) and estimates a function of it (e.g., mean) using all available values. Values can be limited to a time window before the person's index date (from cohort file). Windows must be negative (i.e., before index date). Function parameters can be passed in ... to the function (e.g., na.rm = TRUE). Default function is mean. Other options include median, max, and min.
1 | add_numerical_event(varname = NULL, days = -365, func = mean, ...)
|
varname |
variable name |
days |
size of window in days |
func |
function to apply to values (e.g., mean) |
... |
passed to function (e.g., na.rm = TRUE) |
see above
1 | ## Not run: # nothing here yet
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.