| plotSccsEstimates | R Documentation |
Creates nice self controlled case series plots
plotSccsEstimates(
sccsData,
sccsDiagnostics = NULL,
sccsMeta = NULL,
includeCounts = TRUE,
selectedAnalysisId
)
sccsData |
The self controlled case series data |
sccsDiagnostics |
(optional) The self controlled case series diagnostic data |
sccsMeta |
(optional) The self controlled case series evidence synthesis data |
includeCounts |
Whether to include count on the plot |
selectedAnalysisId |
The analysis ID of interest to plot |
Input the self controlled case series data
Returns a ggplot with the estimates
Other Estimation:
.getCmVersion(),
.getSccsVersion(),
getCMEstimation(),
getCmDiagnosticsData(),
getCmMetaEstimation(),
getCmNegativeControlEstimates(),
getCmOutcomes(),
getCmPropensityModel(),
getCmTable(),
getCmTargets(),
getSccsDiagnosticsData(),
getSccsEstimation(),
getSccsMetaEstimation(),
getSccsModel(),
getSccsNegativeControlEstimates(),
getSccsOutcomes(),
getSccsTable(),
getSccsTargets(),
getSccsTimeToEvent(),
plotCmEstimates()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
sccsEst <- getSccsEstimation(
connectionHandler = connectionHandler,
schema = 'main',
targetIds = 1,
outcomeIds = 3
)
plotSccsEstimates(
sccsData = sccsEst,
sccsMeta = NULL,
selectedAnalysisId = 1
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.