Description Usage Arguments Value Examples
This function calculates ages from patient birthdays
1 | calculate_age(df, birth_date_var, end_date_var, new_var_name)
|
df |
Raw EHR dataset which includes birthdate covariate |
birth_date_var |
Birthdate covariate |
end_date_var |
End date for age calculation |
new_var_name |
What the newly created age variable should be called |
A data frame with a derived age variable
1 2 3 4 | ## Not run:
calculate_age(df, Birth.Date, Encounter.Date, Derived.Age)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.