A function to extract the targets found in cohort method
Source:R/EstimationQueries.R
getCmTargets.RdA function to extract the targets found in cohort method
Arguments
- connectionHandler
A connection handler that connects to the database and extracts sql queries. Create a connection handler via `ResultModelManager::ConnectionHandler$new()`.
- schema
The result database schema (e.g., 'main' for sqlite)
- cmTablePrefix
The prefix used for the cohort method results tables
- cgTablePrefix
The prefix used for the cohort generator results tables
See also
Other Estimation:
getCMEstimation(),
getCmDiagnosticsData(),
getCmMetaEstimation(),
getCmNegativeControlEstimates(),
getCmOutcomes(),
getCmPropensityModel(),
getCmTable(),
getSccsDiagnosticsData(),
getSccsEstimation(),
getSccsMetaEstimation(),
getSccsModel(),
getSccsNegativeControlEstimates(),
getSccsOutcomes(),
getSccsTable(),
getSccsTargets(),
getSccsTimeToEvent(),
plotCmEstimates(),
plotSccsEstimates()
Examples
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
#> Connecting using SQLite driver
cohorts <- getCmTargets(
connectionHandler = connectionHandler,
schema = 'main'
)