This function extracts any meta analysis estimation results for cohort method.
getCmMetaEstimation(
connectionHandler,
schema,
cmTablePrefix = "cm_",
cgTablePrefix = "cg_",
esTablePrefix = "es_",
targetIds = NULL,
outcomeIds = NULL,
comparatorIds = NULL,
includeOneSidedP = TRUE
)Returns a data.frame with the columns:
databaseName the name of the database
analysisId the analysis unique identifier
description a description of the analysis
targetName the target cohort name
targetId the target cohort unique identifier
comparatorName the comparator cohort name
comparatorId the comparator cohort unique identifier
outcomeName the outcome name
outcomeId the outcome cohort unique identifier
calibratedRr the calibrated relative risk
calibratedRrCi95Lb the calibrated relative risk 95 percent confidence interval lower bound
calibratedRrCi95Ub the calibrated relative risk 95 percent confidence interval upper bound
calibratedP the two sided calibrated p value
calibratedOneSidedP the one sided calibrated p value
calibratedLogRr the calibrated relative risk logged
calibratedSeLogRr the standard error of the calibrated relative risk logged
targetSubjects the number of people in the target cohort across included database
comparatorSubjects the number of people in the comparator cohort across included database
targetDays the total number of days at risk across the target cohort people across included database
comparatorDays the total number of days at risk across the comparator cohort people across included database
targetOutcomes the total number of outcomes occuring during the time at risk for the target cohort people across included database
comparatorOutcomes the total number of outcomes occuring during the time at risk for the comparator cohort people across included database
unblind whether the results can be unblinded.
nDatabases the number of databases included
A connection handler that connects to the database and extracts sql queries. Create a connection handler via `ResultModelManager::ConnectionHandler$new()`.
The result database schema (e.g., 'main' for sqlite)
The prefix used for the cohort method results tables
The prefix used for the cohort generator results tables
The prefix used for the evidence synthesis results tables
A vector of integers corresponding to the target cohort IDs
A vector of integers corresponding to the outcome cohort IDs
A vector of integers corresponding to the comparator cohort IDs
This lets you extract from older results that do not have the one sided p by setting this to FALSE
Specify the connectionHandler, the schema and the target/comparator/outcome cohort IDs
Other Estimation:
getCMEstimation(),
getCmDiagnosticsData(),
getCmNegativeControlEstimates(),
getCmOutcomes(),
getCmPropensityModel(),
getCmTable(),
getCmTargets(),
getSccsDiagnosticsData(),
getSccsEstimation(),
getSccsMetaEstimation(),
getSccsModel(),
getSccsNegativeControlEstimates(),
getSccsOutcomes(),
getSccsTable(),
getSccsTargets(),
getSccsTimeToEvent(),
plotCmEstimates(),
plotSccsEstimates()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
cmMeta <- getCmMetaEstimation(
connectionHandler = connectionHandler,
schema = 'main',
targetIds = 1,
outcomeIds = 3
)
Run the code above in your browser using DataLab