evalues.OLS {EValue} | R Documentation |
Compute E-value for a linear regression coefficient estimate
Description
Returns a data frame containing point estimates, the lower confidence limit, and the upper confidence limit on the risk ratio scale (through an approximate conversion) as well as E-values for the point estimate and the confidence interval limit closer to the null.
Usage
evalues.OLS(est, se = NA, sd, delta = 1, true = 0, ...)
Arguments
est |
The linear regression coefficient estimate (standardized or unstandardized) |
se |
The standard error of the point estimate |
sd |
The standard deviation of the outcome (or residual standard deviation); see Details |
delta |
The contrast of interest in the exposure |
true |
The true standardized mean difference to which to shift the observed point estimate. Typically set to 0 to consider a null true effect. |
... |
Arguments passed to other methods. |
Details
This function is for linear regression with a continuous exposure
and outcome. Regarding the continuous exposure, the choice of delta
defines essentially a dichotomization in the exposure between hypothetical
groups of subjects with exposures equal to an arbitrary value c versus
to another hypothetical group with exposures equal to c +
delta
. Regarding the continuous outcome, the function uses the
effect-size conversions in Chinn (2000) and VanderWeele (2017) to
approximately convert the mean difference between these exposure "groups" to
the odds ratio that would arise from dichotomizing the continuous outcome.
For example, if resulting E-value is 2, this means that unmeasured
confounder(s) would need to double the probability of a subject's having
exposure equal to c + delta
instead of c, and would also
need to double the probability of being high versus low on the outcome, in
which the cutoff for "high" versus "low" is arbitrary subject to some
distributional assumptions (Chinn, 2000).
A true standardized mean difference for linear regression would use sd
= SD(Y | X, C), where Y is the outcome, X is the exposure of interest, and C
are any adjusted covariates. See Examples for how to extract this from
lm
. A conservative approximation would instead use sd
= SD(Y).
Regardless, the reported E-value for the confidence interval treats sd
as known, not estimated.
References
Chinn, S (2000). A simple method for converting an odds ratio to effect size for use in meta-analysis. Statistics in Medicine, 19(22), 3127-3131.
VanderWeele, TJ (2017). On a square-root transformation of the odds ratio for a common outcome. Epidemiology, 28(6), e58.
Examples
# first standardizing conservatively by SD(Y)
data(lead)
ols = lm(age ~ income, data = lead)
# for a 1-unit increase in income
evalues.OLS(est = ols$coefficients[2],
se = summary(ols)$coefficients['income', 'Std. Error'],
sd = sd(lead$age))
# for a 0.5-unit increase in income
evalues.OLS(est = ols$coefficients[2],
se = summary(ols)$coefficients['income', 'Std. Error'],
sd = sd(lead$age),
delta = 0.5)
# now use residual SD to avoid conservatism
# here makes very little difference because income and age are
# not highly correlated
evalues.OLS(est = ols$coefficients[2],
se = summary(ols)$coefficients['income', 'Std. Error'],
sd = summary(ols)$sigma)