dh.buildModels | R Documentation |
This function constructs exposure-outcome models for each cohort using available exposure and outcome variables, and optionally available covariates.
dh.buildModels(avail_exp = NULL, avail_cov = NULL, avail_out = NULL)
avail_exp |
Output from |
avail_cov |
Output from |
avail_out |
Output from |
The function performs the following steps:
Summarizes available exposure and outcome variables.
Combines available exposure and outcome variables for all cohorts.
Tidies up the combinations.
If covariates are available, it splits combinations by cohort, adds covariates, and creates formulas.
Returns the constructed models or formulas.
A tibble containing four columns: (i) cohort, (ii) exposure, (iii) outcome, (iv)
regression formula with these combinations. Optionally contains fifth column with list of
covariates if avail_cov
is not null.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.