Patient-level prediction with the HADES PatientLevelPrediction Package
Source:R/Module-PatientLevelPrediction.R
PatientLevelPredictionModule.RdModule for performing patient-level prediction in an observational database in the OMOP Common Data Model.
Super class
StrategusModule -> PatientLevelPredictionModule
Methods
PatientLevelPredictionModule$execute()
Executes the PatientLevelPrediction package
Usage
PatientLevelPredictionModule$execute(
connectionDetails,
analysisSpecifications,
executionSettings
)Arguments
connectionDetailsAn object of class
connectionDetailsas created by theDatabaseConnector::createConnectionDetails()function.analysisSpecificationsAn object of type
AnalysisSpecificationsas created bycreateEmptyAnalysisSpecificiations().analysisSpecificationsAn object of type
AnalysisSpecificationsas created bycreateEmptyAnalysisSpecificiations().executionSettingsAn object of type
ExecutionSettingsas created bycreateCdmExecutionSettings()orcreateResultsExecutionSettings().
PatientLevelPredictionModule$createResultsDataModel()
Create the results data model for the module
Usage
PatientLevelPredictionModule$createResultsDataModel(
resultsConnectionDetails,
resultsDatabaseSchema,
tablePrefix = self$tablePrefix
)Arguments
resultsConnectionDetailsThe connection details to the results database which is an object of class
connectionDetailsas created by theDatabaseConnector::createConnectionDetails()function.resultsConnectionDetailsThe connection details to the results database which is an object of class
connectionDetailsas created by theDatabaseConnector::createConnectionDetails()function.resultsDatabaseSchemaThe schema in the results database that holds the results data model.
tablePrefixA prefix to apply to the database table names (optional).
tablePrefixA prefix to apply to the database table names (optional).
PatientLevelPredictionModule$getResultsDataModelSpecification()
Get the results data model specification for the module
PatientLevelPredictionModule$uploadResults()
Upload the results for the module
Usage
PatientLevelPredictionModule$uploadResults(
resultsConnectionDetails,
analysisSpecifications,
resultsDataModelSettings
)Arguments
resultsConnectionDetailsThe connection details to the results database which is an object of class
connectionDetailsas created by theDatabaseConnector::createConnectionDetails()function.resultsConnectionDetailsThe connection details to the results database which is an object of class
connectionDetailsas created by theDatabaseConnector::createConnectionDetails()function.analysisSpecificationsAn object of type
AnalysisSpecificationsas created bycreateEmptyAnalysisSpecificiations().analysisSpecificationsAn object of type
AnalysisSpecificationsas created bycreateEmptyAnalysisSpecificiations().resultsDataModelSettingsThe results data model settings as created using
createResultsDataModelSettings().
PatientLevelPredictionModule$createModuleSpecifications()
Creates the PatientLevelPrediction Module Specifications
Usage
PatientLevelPredictionModule$createModuleSpecifications(
modelDesignList,
skipDiagnostics = FALSE
)Arguments
modelDesignListA list of model designs created using
PatientLevelPrediction::createModelDesign()skipDiagnosticsWhether to run the diagnostics based on PROBAST before model development