Self-Controlled Case Series design with the HADES SelfControlledCaseSeries Package
Source:R/Module-SelfControlledCaseSeries.R
SelfControlledCaseSeriesModule.RdModule for performing Self-Controlled Case Series (SCCS) analyses against the OMOP Common Data Model.
Super class
Strategus::StrategusModule -> SelfControlledCaseSeriesModule
Methods
Public methods
Method execute()
Executes the SelfControlledCaseSeries package
Usage
SelfControlledCaseSeriesModule$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().
Method createResultsDataModel()
Create the results data model for the module
Usage
SelfControlledCaseSeriesModule$createResultsDataModel(
resultsConnectionDetails,
resultsDatabaseSchema,
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).
Method uploadResults()
Upload the results for the module
Usage
SelfControlledCaseSeriesModule$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 [@seealso
createResultsDataModelSettings()]
Method createModuleSpecifications()
Creates the SelfControlledCaseSeries Module Specifications
Usage
SelfControlledCaseSeriesModule$createModuleSpecifications(
sccsAnalysesSpecifications,
sccsAnalysisList = NULL,
exposuresOutcomeList = NULL,
analysesToExclude = NULL,
combineDataFetchAcrossOutcomes = NULL,
sccsDiagnosticThresholds = NULL
)Arguments
sccsAnalysesSpecificationsAn R6 class created by SelfControlledCaseSeries::createSccsAnalysesSpecifications
sccsAnalysisListDeprecated with SelfControlledCaseSeries v6 - please use the
sccsAnalysesSpecificationsparameter instead.exposuresOutcomeListDeprecated with SelfControlledCaseSeries v6 - please use the
sccsAnalysesSpecificationsparameter instead.analysesToExcludeDeprecated with SelfControlledCaseSeries v6 - please use the
sccsAnalysesSpecificationsparameter instead.combineDataFetchAcrossOutcomesDeprecated with SelfControlledCaseSeries v6 - please use the
sccsAnalysesSpecificationsparameter instead.sccsDiagnosticThresholdsDeprecated with SelfControlledCaseSeries v6 - please use the
sccsAnalysesSpecificationsparameter instead.