
Self-contained HTML report for MR analysis
generateMRReport.RdProduces a self-contained HTML report (single file, no external dependencies) summarizing the entire MR analysis including instrument summary, likelihood profile plots, main MR result, sensitivity analyses, PheWAS diagnostics, and site contributions. Suitable for sharing with non-technical stakeholders.
Usage
generateMRReport(
mrEstimate,
sensitivityResults = NULL,
diagnosticResults = NULL,
combinedProfile,
siteProfileList = NULL,
instrumentTable = NULL,
exposureLabel = "Exposure",
outcomeLabel = "Outcome",
outputPath = "./Medusa_report.html"
)Arguments
- mrEstimate
Output of
computeMREstimate.- sensitivityResults
Output of
runSensitivityAnalyses. Can be NULL if no sensitivity analyses were run.- diagnosticResults
Output of
runInstrumentDiagnostics. Can be NULL if no diagnostics were run.- combinedProfile
Output of
poolLikelihoodProfiles.- siteProfileList
Named list of site profile objects from
fitOutcomeModel.- instrumentTable
Output of
getMRInstruments.- exposureLabel
Character. Human-readable name for the exposure. Default is "Exposure".
- outcomeLabel
Character. Human-readable name for the outcome. Default is "Outcome".
- outputPath
Character. Path for the output HTML file. Default is "./Medusa_report.html".
Examples
if (FALSE) { # \dontrun{
generateMRReport(
mrEstimate = estimate,
sensitivityResults = sensitivity,
diagnosticResults = diagnostics,
combinedProfile = combined,
siteProfileList = siteProfiles,
instrumentTable = instruments,
exposureLabel = "IL-6 receptor levels",
outcomeLabel = "Colorectal cancer"
)
} # }