getPredictionPerformanceTable {OhdsiReportGenerator} | R Documentation |
Extract specific results table
Description
This function extracts the specified table
Usage
getPredictionPerformanceTable(
connectionHandler,
schema,
plpTablePrefix = "plp_",
table = "attrition",
performanceId = NULL
)
Arguments
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 |
table |
The table to extract |
performanceId |
(optional) restrict to the input performanceId |
Details
Specify the connectionHandler, the resultDatabaseSettings, the table of interest and (optionally) a performanceId to filter to
Value
Returns a data.frame with the specified table
See Also
Other Prediction:
getPredictionCohorts()
,
getPredictionDiagnosticTable()
,
getPredictionDiagnostics()
,
getPredictionHyperParamSearch()
,
getPredictionIntercept()
,
getPredictionModelDesigns()
,
getPredictionPerformances()
,
getPredictionTopPredictors()
Examples
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
attrition <- getPredictionPerformanceTable(
connectionHandler = connectionHandler,
schema = 'main',
table = 'attrition'
)