mvfmr: Functional Multivariable Mendelian Randomization

Implements Multivariable Functional Mendelian Randomization (MV-FMR) to estimate time-varying causal effects of multiple longitudinal exposures on health outcomes. Extends univariable functional Mendelian Randomisation (MR) (Tian et al., 2024 <doi:10.1002/sim.10222>) to the multivariable setting, enabling joint estimation of multiple time-varying exposures with pleiotropy and mediation scenarios. Key features include: (1) data-driven cross-validation for basis component selection, (2) handling of mediation pathways between exposures, (3) support for both continuous and binary outcomes using Generalized Method of Moments (GMM) and control function approaches, (4) one-sample and two-sample MR designs, (5) bootstrap inference and instrument diagnostics including Q-statistics for overidentification testing. Methods are described in Fontana et al. (2025) <doi:10.48550/arXiv.2512.19064>.

Version: 0.1.0
Depends: R (≥ 3.5.0)
Imports: fdapace, ggplot2 (≥ 3.0.0), parallel, doParallel, foreach, pROC, progress, glmnet, gridExtra, stats
Suggests: dplyr, tidyr, testthat (≥ 3.0.0), knitr, rmarkdown
Published: 2026-02-09
DOI: 10.32614/CRAN.package.mvfmr (may not be active yet)
Author: Nicole Fontana [aut, cre], Francesca Ieva [aut, ths], Piercesare Secchi [aut, ths]
Maintainer: Nicole Fontana <nicole.fontana at polimi.it>
License: MIT + file LICENSE
NeedsCompilation: no
Materials: README
CRAN checks: mvfmr results

Documentation:

Reference manual: mvfmr.html , mvfmr.pdf
Vignettes: Introduction to Multivariable Functional Mendelian Randomization (source, R code)
Univariable Functional Mendelian Randomization (source, R code)

Downloads:

Package source: mvfmr_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): mvfmr_0.1.0.tgz, r-oldrel (arm64): mvfmr_0.1.0.tgz, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=mvfmr to link to this page.