Choose one of the following, and the other will be estimated:
exposure_r2
outcome_r2
tip_coef_with_r2(
effect,
se,
df,
exposure_r2 = NULL,
outcome_r2 = NULL,
verbose = TRUE,
alpha = 0.05,
tip_bound = FALSE,
...
)
Numeric. Observed exposure - outcome effect from a regression model. This is the point estimate (beta coefficient)
Numeric. Standard error of the effect
in the previous parameter.
Numeric positive value. Residual degrees of freedom for the model used to estimate the observed exposure - outcome effect. This is the total number of observations minus the number of parameters estimated in your model. Often for models estimated with an intercept this is N - k - 1 where k is the number of predictors in the model.
Numeric value between 0 and 1. The assumed partial R2 of the unobserved confounder with the exposure given the measured covariates.
Numeric value between 0 and 1. The assumed partial R2 of the unobserved confounder with the outcome given the exposure and the measured covariates.
Logical. Indicates whether to print informative message.
Default: TRUE
Significance level. Default = 0.05
.
Do you want to tip at the bound? Default = FALSE
, will tip at the point estimate
Optional arguments passed to the sensemakr::adjusted_estimate()
function.
A data frame.
# NOT RUN {
tip_coef_with_r2(0.5, 0.1, 102, 0.5)
# }
Run the code above in your browser using DataLab