Description Usage Arguments Value Examples
Generate data for
1 | generate_data(n, dgp, correct_outcome = TRUE, correct_ps = TRUE)
|
n |
desired sample size. |
dgp |
character string indicating desired data-generating process. Currently the following DGPs are implemented, each based on a different publication: |
correct_outcome |
logical indicating whether the outcome model should eb correctly specified. |
correct_ps |
logical indicating whether the propensity score model should be correctly specified. |
a list of objects including
1 2 3 4 | gen_mod <- generate_data(n = 100,
dgp = 'ks',
correct_outcome = FALSE,
correct_ps = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.