Abstract
Motivation Mendelian randomisation methods that estimate non-linear exposure—outcome relationships typically require individual-level data. This package implements non-linear Mendelian randomisation methods using stratified summarised data, facilitating analyses where individual-level data cannot easily be shared, and additionally increasing reproducibility as summarised data can be reported. Dependence on summarised data means the methods are independent of the form of the individual- level data, increasing flexibility to different outcome types (such as continuous, binary, or time-to- event outcomes).
Implementation SUMnlmr is available as an R package (version 3.1.0 or higher).
General features The package implements the previously proposed fractional polynomial and piecewise linear methods on stratified summarised data that can either be estimated from individual-level data using the package or supplied by a collaborator. It constructs plots to visualise the estimated exposure— outcome relationship, and provides statistics to assess preference for a non-linear model over a linear model.
Availability The package is freely available from GitHub [https://github.com/amymariemason/SUMnlmr].
Competing Interest Statement
The authors have declared no competing interest.
Funding Statement
This work was supported by EU/EFPIA Innovative Medicines Initiative Joint Undertaking BigData@Heart [grant number 116074 to AMM] ; Sir Henry Dale Fellowship jointly funded by the Wellcome Trust and the Royal Society [grant number 204623/Z/16/Z to SB]; United Kingdom Research and Innovation Medical Research Council [grant number MC_UU_00002/7]; British Heart Foundation [grant numbers RG/13/13/30194, RG/18/13/33946]; and NIHR Cambridge Biomedical Research Centre [grant number BRC-1215-20014] [*]. *The views expressed are those of the author(s) and not necessarily those of the NIHR or the Department of Health and Social Care.
Author Declarations
I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.
Yes
The details of the IRB/oversight body that provided approval or exemption for the research described are given below:
. The UK Biobank cohort has been approved by the North West Multicentre Research Ethics Committee, UK (Ref: 16/NW/0274). Written informed consent has been obtained from all study participants. The current study was approved by the UK Biobank access management board under application 7439 . Participants who had withdrawn consent by the time of the analysis were excluded from the dataset.
I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.
Yes
I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).
Yes
I have followed all appropriate research reporting guidelines and uploaded the relevant EQUATOR Network research reporting checklist(s) and other pertinent material as supplementary files, if applicable.
Yes
Data Availability
Individual level data from UK Biobank cannot be shared publicly for ethical/privacy reasons. This data will be shared on reasonable request to the corresponding author, with the permission of UK Biobank. The stratified summarised data used in the example is in the supplementary material.