View source: R/mr_median-methods.R
weighted.median.boot.se | R Documentation |
Internal function for calculating standard error of weighted median estimate (or simple median estimator if weights are all equal) using bootstrapping. The number of iterations and initial value of the random seed can also be set.
weighted.median.boot.se(Bx, By, Bxse, Byse, weights, iter, seed)
Bx |
A numeric vector of beta-coefficient values for genetic associations with the exposure. |
By |
A numeric vector of beta-coefficient values for genetic associations with the outcome. |
Bxse |
The standard errors associated with the beta-coefficients in |
Byse |
The standard errors associated with the beta-coefficients in |
weights |
Weights. |
iter |
The number of bootstrap samples to generate when calculating the standard error. |
seed |
The random seed to use when generating the bootstrap samples (for reproducibility). If set to |
None.
Causal estimate.
weighted.median.boot.se(Bx = ldlc, By = chdlodds, Bxse = ldlcse, Byse = chdloddsse,
weights = chdloddsse, iter = 100, seed = 314)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.