
Shiny dashboard for MR diagnostics and results
launchResultsExplorer.RdOpens an interactive bslib dashboard displaying instrument diagnostics (F-statistics, PheWAS, allele frequencies, missingness, heterogeneity) and MR results (primary estimate, sensitivity analyses, scatter/funnel/ leave-one-out plots). Styled to match the Medusa package website.
Usage
launchResultsExplorer(
mrEstimate,
sensitivityResults = NULL,
diagnosticResults = NULL,
combinedProfile = NULL,
siteProfileList = NULL,
instrumentTable = NULL,
perSnpEstimates = NULL,
negativeControlResults = NULL,
launch.browser = TRUE,
port = NULL
)Arguments
- mrEstimate
Output of
computeMREstimate.- sensitivityResults
Output of
runSensitivityAnalyses. Can be NULL.- diagnosticResults
Output of
runInstrumentDiagnostics. Can be NULL.- combinedProfile
Output of
poolLikelihoodProfiles.- siteProfileList
Optional named list of site profile objects from
fitOutcomeModel.- instrumentTable
Output of
getMRInstruments.- perSnpEstimates
Optional data frame of per-SNP summary statistics (output of
fitOutcomeModelwithanalysisType = "perSNP"). Needed for scatter and funnel plots.- negativeControlResults
Output of
runNegativeControlAnalysis. Can be NULL.- launch.browser
Logical. Whether to open a browser window. Default is TRUE.
- port
Integer or NULL. Port for the Shiny server. NULL uses a random available port.