plotCmEstimates: Plots the cohort method results for one analysis

View source: R/EstimationPlots.R

plotCmEstimatesR Documentation

Plots the cohort method results for one analysis

Description

Creates nice cohort method plots

Usage

plotCmEstimates(
  cmData,
  cmMeta = NULL,
  targetName,
  comparatorName,
  selectedAnalysisId
)

Arguments

cmData

The cohort method data

cmMeta

(optional) The cohort method evidence synthesis data

targetName

A friendly name for the target cohort

comparatorName

A friendly name for the comparator cohort

selectedAnalysisId

The analysis ID of interest to plot

Details

Input the cohort method data

Value

Returns a ggplot with the estimates

See Also

Other Estimation: getCMEstimation(), getCmDiagnosticsData(), getCmMetaEstimation(), getSccsDiagnosticsData(), getSccsEstimation(), getSccsMetaEstimation(), plotSccsEstimates()

Examples

conDet <- getExampleConnectionDetails()

connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)

cmEst <- getCMEstimation(
  connectionHandler = connectionHandler, 
  schema = 'main',
  targetIds = 1,
  outcomeIds = 3
)
plotCmEstimates(
  cmData = cmEst, 
  cmMeta = NULL, 
  targetName = 'target', 
  comparatorName = 'comp', 
  selectedAnalysisId = 1
)


OhdsiReportGenerator documentation built on April 12, 2025, 2:09 a.m.