Description Usage Arguments Value
View source: R/data_preparation.R
Prepares a dataframe for the analysis in three steps:
Checks whether sex
, age
, and entry_date
have the
correct format and whether their specifications are plausible
Build the dataframe used for the analysis
Check each row of the dataframe for correctness and plausibility
1 2 3 4 5 6 7 8 9 10 11 |
data |
a dataframe object as produced by |
reference_month |
a number indicating the reference month of the analysis |
reference_year |
a number indicating the reference year of the analysis |
female_spec |
a string or number indicating the way females are specified in the dataset. |
male_spec |
a string or number indicating the way males are specified in the dataset |
age_spec |
a string indicating the age specification, can be one of
|
entry_date_spec |
a string indicating the entry_date specification, can
be one of |
ignore_plausibility_check |
a boolean indicating whether the user wants
to ignore implausible data. If |
prompt_data_cleanup |
a boolean indicating whether the user wants to be
prompted regarding incorrect data values. If |
a data.frame which has no incorrect rows left and can be used to estimate the standard analysis model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.