View source: R/adjust_coefficient.R
adjust_coef | R Documentation |
Adjust an observed regression coefficient for a normally distributed confounder
adjust_coef( effect_observed, exposure_confounder_effect, confounder_outcome_effect, verbose = TRUE ) adjust_coef_with_continuous( effect_observed, exposure_confounder_effect, confounder_outcome_effect, verbose = TRUE )
effect_observed |
Numeric. Observed exposure - outcome effect from a regression model. This can be the beta coefficient, the lower confidence bound of the beta coefficient, or the upper confidence bound of the beta coefficient. |
exposure_confounder_effect |
Numeric. Estimated difference in scaled means between the unmeasured confounder in the exposed population and unexposed population |
confounder_outcome_effect |
Numeric. Estimated relationship between the unmeasured confounder and the outcome. |
verbose |
Logical. Indicates whether to print informative message.
Default: |
Data frame.
## Update an observed coefficient of 0.5 with an unmeasured confounder ## with a difference in scaled means between exposure groups of 0.2 ## and coefficient of 0.3 adjust_coef(0.5, 0.2, 0.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.