View source: R/EstimationQueries.R
| getSccsTimeToEvent | R Documentation |
This function extracts the SCCS time-to-event.
getSccsTimeToEvent(
connectionHandler,
schema,
sccsTablePrefix = "sccs_",
cgTablePrefix = "cg_",
databaseTable = "database_meta_data",
databaseIds = NULL,
exposuresOutcomeSetIds = NULL,
indicationIds = NULL,
outcomeIds = NULL,
targetIds = NULL,
analysisIds = NULL
)
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 |
databaseTable |
The name of the table with the database details (default 'database_meta_data') |
databaseIds |
the database IDs to restrict to |
exposuresOutcomeSetIds |
the exposureOutcomeIds to restrict to |
indicationIds |
The indications that the target was nested to |
outcomeIds |
A vector of integers corresponding to the outcome cohort IDs |
targetIds |
A vector of integers corresponding to the target cohort IDs |
analysisIds |
the analysis IDs to restrict to |
Specify the connectionHandler, the schema and optionally the target/outcome/analysis/database IDs
Returns a data.frame with the SCCS time-to-event
Other Estimation:
.getCmVersion(),
.getSccsVersion(),
getCMEstimation(),
getCmDiagnosticsData(),
getCmMetaEstimation(),
getCmNegativeControlEstimates(),
getCmOutcomes(),
getCmPropensityModel(),
getCmTable(),
getCmTargets(),
getSccsDiagnosticsData(),
getSccsEstimation(),
getSccsMetaEstimation(),
getSccsModel(),
getSccsNegativeControlEstimates(),
getSccsOutcomes(),
getSccsTable(),
getSccsTargets(),
plotCmEstimates(),
plotSccsEstimates()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
getSccsTimeToEvent <- getSccsNegativeControlEstimates(
connectionHandler = connectionHandler,
schema = 'main'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.