View source: R/PredictionQueries.R
| getPredictionTargets | R Documentation |
A function to extarct the targets found in prediction
getPredictionTargets(
connectionHandler,
schema,
plpTablePrefix = "plp_",
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) |
plpTablePrefix |
The prefix used for the patient level prediction 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 prediction target cohort ids and names.
Other Prediction:
getFullPredictionPerformances(),
getPredictionAggregateTopPredictors(),
getPredictionCohorts(),
getPredictionCovariates(),
getPredictionDiagnosticTable(),
getPredictionDiagnostics(),
getPredictionHyperParamSearch(),
getPredictionIntercept(),
getPredictionLift(),
getPredictionModelDesigns(),
getPredictionOutcomes(),
getPredictionPerformanceTable(),
getPredictionPerformances(),
getPredictionTopPredictors()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
cohorts <- getPredictionTargets(
connectionHandler = connectionHandler,
schema = 'main'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.