Package: OneSampleMR 0.2.0
OneSampleMR: One Sample Mendelian Randomization and Instrumental Variable Analyses
Useful functions for one-sample (individual level data) Mendelian randomization and instrumental variable analyses. The package includes implementations of; the Sanderson and Windmeijer (2016) <doi:10.1016/j.jeconom.2015.06.004> conditional F-statistic, the multiplicative structural mean model Hernán and Robins (2006) <doi:10.1097/01.ede.0000222409.00878.37>, the logistic structural mean model Vansteelandt and Goetghebeur (2003) <doi:10.1046/j.1369-7412.2003.00417.x>, two-stage predictor substitution and two-stage residual inclusion estimators explained by Terza et al. (2008) <doi:10.1016/j.jhealeco.2007.09.009>, and estimation within quantiles of the first stage residuals and in moving windows as described by Burgess et al. (2014) <doi:10.1097/EDE.0000000000000161>.
Authors:
OneSampleMR_0.2.0.tar.gz
OneSampleMR_0.2.0.zip(r-4.7-any)OneSampleMR_0.2.0.zip(r-4.6-any)OneSampleMR_0.2.0.zip(r-4.5-any)
OneSampleMR_0.2.0.tgz(r-4.6-any)OneSampleMR_0.2.0.tgz(r-4.5-any)
OneSampleMR_0.2.0.tar.gz(r-4.7-any)OneSampleMR_0.2.0.tar.gz(r-4.6-any)
OneSampleMR_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
OneSampleMR/json (API)
| # Install 'OneSampleMR' in R: |
| install.packages('OneSampleMR', repos = c('https://mrcieu.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/remlapmot/onesamplemr/issues
Pkgdown/docs site:https://remlapmot.github.io
instrumental-variableinstrumental-variablesmendelian-randomisationmendelian-randomizationmendelianrandomisationmendelianrandomization
Last updated from:1f8637ba34. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 157 | ||
| source / vignettes | OK | 227 | ||
| linux-release | OK | 156 | ||
| macos-release | OK | 98 | ||
| macos-oldrel | OK | 111 | ||
| windows-devel | OK | 108 | ||
| windows-release | OK | 84 | ||
| windows-oldrel | OK | 107 | ||
| wasm-release | OK | 122 |
Exports:fswivmwivxtilelsmmmsmmtspstsri
Dependencies:abindbackportsbootbroomcarcarDataclicolorspacecowplotcpp11DerivdoBydplyrexpmfarverforecastFormulafracdiffgenericsggplot2gluegmmgtableisobandivreglabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixMatrixModelsmgcvminqamodelrmsmmvtnormnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangS7sandwichscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrzoo
Last update: 2026-10-22
Started: 2021-08-19
Last update: 2026-07-28
Started: 2021-08-19
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Additive Structural Mean Model | asmm |
| Conditional F-Statistic of Sanderson and Windmeijer (2016) | fsw fsw.fixest fsw.ivreg fsw.iv_robust print.fsw |
| Moving Window Estimation | ivmw plot.ivmw print.ivmw |
| Estimation within Quantiles of the First Stage Residuals | ivxtile plot.ivxtile print.ivxtile |
| Logistic Structural Mean Model | lsmm |
| Multiplicative Structural Mean Model | msmm |
| Methods for Fitted Models | coef.lsmm coef.msmm coef.tsps coef.tsri confint.lsmm confint.msmm confint.tsps confint.tsri formula.lsmm formula.msmm formula.tsps formula.tsri nobs.lsmm nobs.msmm nobs.tsps nobs.tsri OneSampleMR-methods vcov.lsmm vcov.msmm vcov.tsps vcov.tsri |
| Summarizing LSMM Fits | print.lsmm print.summary.lsmm summary.lsmm |
| Summarizing MSMM Fits | print.msmm print.summary.msmm summary.msmm |
| Summarizing TSPS Fits | print.summary.tsps print.tsps summary.tsps |
| Summarizing TSRI Fits | print.summary.tsri print.tsri summary.tsri |
| Two-Stage Predictor Substitution (TSPS) Estimators | tsps |
| Two-Stage Residual Inclusion (TSRI) Estimators | tsri |
