R/uploadToDatabase.R
addRunPlpToDatabase.Rd
This function adds a runPlp or external validation result into a database
addRunPlpToDatabase(
runPlp,
connectionDetails,
databaseSchemaSettings,
cohortDefinitions,
modelSaveLocation,
databaseList = NULL
)
An object of class runPlp
or class externalValidatePlp
A connection details created by using the
function createConnectionDetails
in the
DatabaseConnector
package.
A object created by createDatabaseSchemaSettings
with all the settings specifying the result tables
A set of one or more cohorts extracted using ROhdsiWebApi::exportCohortDefinitionSet()
The location of the directory that models will be saved to
(Optional) If you want to change the database name then used createDatabaseList
to specify the database settings but use the same cdmDatabaseId was model development/validation
Returns a data.frame with the database details
This function is used when inserting results into the PatientLevelPrediction database results schema