Run a list of analyses
runPheValuatorAnalyses(
phenotype,
cohortDefinitionSet = data.frame(),
analysisName = "Main",
runDateTime = format(Sys.time(), "%b %d %Y %X"),
connectionDetails,
oracleTempSchema = NULL,
tempEmulationSchema = getOption("sqlRenderTempEmulationSchema"),
cdmDatabaseSchema,
cohortDatabaseSchema = cdmDatabaseSchema,
cohortTable = "cohort",
workDatabaseSchema = cdmDatabaseSchema,
databaseId = cdmDatabaseSchema,
cdmVersion = 5,
outputFolder,
priorModelToUse = NULL,
pheValuatorAnalysisList
)
Name of the phenotype for analysis
Data.frame of cohorts must include columns cohortId, cohortName, json, sql - should include all cohort definitions needed to replicate PheValuator analysis
Name of the analysis
Starting date and time of the PheValuator run
An R object of type connectionDetails
created using the
function createConnectionDetails
in the
DatabaseConnector
package.
DEPRECATED: use tempEmulationSchema
instead.
Some database platforms like Oracle and Impala do not truly support temp tables. To emulate temp tables, provide a schema with write privileges where temp tables can be created.
The name of the database schema that contains the OMOP CDM instance. Requires read permissions to this database. On SQL Server, this should specifiy both the database and the schema, so for example 'cdm_instance.dbo'.
The name of the database schema that is the location where the cohort data used to define the at risk cohort is available. Requires read permissions to this database.
The tablename that contains the at risk cohort. The expectation is cohortTable has format of COHORT table: cohort_concept_id, SUBJECT_ID, COHORT_START_DATE, COHORT_END_DATE.
The name of the database schema that is the location where a table can be created and afterwards removed. Requires write permissions to this database.
Name of the database in the analysis
Define the OMOP CDM version used: currently supports "5".
Name of the folder where all the outputs will be written to.
folder where a previously developed model to use in analysis will be found
A list of objects of type pheValuatorAnalysis
as created using
the createPheValuatorAnalysis
function.
A data frame specifying where the constructed evaluation cohort and phenotype evaluation results can be found in the local file system.
Run a list of analyses.