View source: R/EstimationQueries.R
| getCmPropensityModel | R Documentation |
This function extracts the cohort method model.
getCmPropensityModel(
connectionHandler,
schema,
cmTablePrefix = "cm_",
targetId = NULL,
comparatorId = NULL,
indicationId = NULL,
analysisId = NULL,
databaseId = 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) |
cmTablePrefix |
The prefix used for the cohort method results tables |
targetId |
An integer corresponding to the target cohort ID |
comparatorId |
the comparator ID of interest |
indicationId |
The indications that the target & comparator was nested to |
analysisId |
the analysis ID to restrict to |
databaseId |
the database ID to restrict to |
Specify the connectionHandler, the schema and optionally the target/comparator/analysis/database IDs
Returns a data.frame with the cohort method model
Other Estimation:
.getCmVersion(),
.getSccsVersion(),
getCMEstimation(),
getCmDiagnosticsData(),
getCmMetaEstimation(),
getCmNegativeControlEstimates(),
getCmOutcomes(),
getCmTable(),
getCmTargets(),
getSccsDiagnosticsData(),
getSccsEstimation(),
getSccsMetaEstimation(),
getSccsModel(),
getSccsNegativeControlEstimates(),
getSccsOutcomes(),
getSccsTable(),
getSccsTargets(),
getSccsTimeToEvent(),
plotCmEstimates(),
plotSccsEstimates()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
cmModel <- getCmPropensityModel(
connectionHandler = connectionHandler,
schema = 'main'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.