Published February 6, 2026
| Version v0.6.30
Software
Open
TwoSampleMR R package
Authors/Creators
Description
Some optimizations to the code, including:
- Vectorised
mr_egger_regression_bootstrap() - Vectorised
weighted_median_bootstrap() - Deleted duplicated
weighted_median()function - Replace plyr function calls with data.table function calls
plyr::rbind.fill(...)todata.table::rbindlist(..., fill = TRUE, use.names = TRUE)plyr::ddply(dat, cols, func)tolapply()over unique combinations +data.table::rbindlist()- Added
data.table::setDF()calls to convert back to data.frame for compatibility - And removed plyr from Imports list
- In
flip_alleles()usechartr()instead of 4gsub()calls - In
random_string()use single call tosample()instead of n calls - Optimized
mr_mode() - Replaced
apply(..., any(is.na()))withcomplete.case() - Optimized the
mr()function - Optimized the
Optimize get_r_from_lor()function - Optimized the
mr_rucker_bootstrap()andmr_rucker_jackknife_internal()functions - Replaced
sapply()withvapply()in several cases - Optimized the
simple_cap()function - And a few other minor optimizations
Notes
Files
MRCIEU/TwoSampleMR-v0.6.30.zip
Files
(6.1 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:0598ac1e4f368e44eceadf0f588366ec
|
6.1 MB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/MRCIEU/TwoSampleMR/tree/v0.6.30 (URL)
Software
- Repository URL
- https://github.com/MRCIEU/TwoSampleMR