Learn R Programming

OhdsiReportGenerator (version 2.0.2)

plotSccsEstimates: Plots the self controlled case series results for one analysis

Description

Creates nice self controlled case series plots

Usage

plotSccsEstimates(sccsData, sccsMeta = NULL, targetName, selectedAnalysisId)

Value

Returns a ggplot with the estimates

Arguments

sccsData

The self controlled case series data

sccsMeta

(optional) The self controlled case seriesd evidence synthesis data

targetName

A friendly name for the target cohort

selectedAnalysisId

The analysis ID of interest to plot

Details

Input the self controlled case series data

See Also

Other Estimation: getCMEstimation(), getCmDiagnosticsData(), getCmMetaEstimation(), getCmNegativeControlEstimates(), getCmOutcomes(), getCmPropensityModel(), getCmTable(), getCmTargets(), getSccsDiagnosticsData(), getSccsEstimation(), getSccsMetaEstimation(), getSccsModel(), getSccsNegativeControlEstimates(), getSccsOutcomes(), getSccsTable(), getSccsTargets(), getSccsTimeToEvent(), plotCmEstimates()

Examples

Run this code

conDet <- getExampleConnectionDetails()

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

sccsEst <- getSccsEstimation(
  connectionHandler = connectionHandler, 
  schema = 'main',
  targetIds = 1,
  outcomeIds = 3
)
plotSccsEstimates(
  sccsData = sccsEst, 
  sccsMeta = NULL, 
  targetName = 'target', 
  selectedAnalysisId = 1
)

Run the code above in your browser using DataLab