View source: R/EstimationQueries.R
| getSccsTargets | R Documentation |
A function to extract the targets found in self controlled case series
getSccsTargets(
connectionHandler,
schema,
sccsTablePrefix = "sccs_",
cgTablePrefix = "cg_"
)
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) |
sccsTablePrefix |
The prefix used for the cohort generator results tables |
cgTablePrefix |
The prefix used for the cohort generator results tables |
Specify the connectionHandler, the schema and the prefixes
A data.frame with the self controlled case series target cohort ids and names.
Other Estimation:
.getCmVersion(),
.getSccsVersion(),
getCMEstimation(),
getCmDiagnosticsData(),
getCmMetaEstimation(),
getCmNegativeControlEstimates(),
getCmOutcomes(),
getCmPropensityModel(),
getCmTable(),
getCmTargets(),
getSccsDiagnosticsData(),
getSccsEstimation(),
getSccsMetaEstimation(),
getSccsModel(),
getSccsNegativeControlEstimates(),
getSccsOutcomes(),
getSccsTable(),
getSccsTimeToEvent(),
plotCmEstimates(),
plotSccsEstimates()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
cohorts <- getSccsTargets(
connectionHandler = connectionHandler,
schema = 'main'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.