weighted.median.boot.se: Weighted median standard error function
Description
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.
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 Bx.
Byse
The standard errors associated with the beta-coefficients in By.
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 NA, the random seed will not be set (for example, if the function is used as part of a larger simulation).