This function extracts data using a user specified connection and cdm_schema, applied the model and then calcualtes the performance
externalValidatePlp(
plpResult,
connectionDetails,
validationSchemaTarget,
validationSchemaOutcome,
validationSchemaCdm,
databaseNames,
validationTableTarget = "cohort",
validationTableOutcome = "cohort",
validationIdTarget = NULL,
validationIdOutcome = NULL,
oracleTempSchema = NULL,
verbosity = "INFO",
keepPrediction = F,
recalibrate = NULL,
sampleSize = NULL,
outputFolder
)
The object returned by runPlp() containing the trained model
The connection details for extracting the new data
A string or vector of strings specifying the database containing the target cohorts
A string or vector of strings specifying the database containing the outcome cohorts
A string or vector of strings specifying the database containing the cdm
A string of vector of strings specifying sharing friendly database names corresponding to validationSchemaCdm
A string or vector of strings specifying the table containing the target cohorts
A string or vector of strings specifying the table containing the outcome cohorts
An iteger specifying the cohort id for the target cohort
An iteger specifying the cohort id for the outcome cohort
The temp oracle schema requires read/write
Sets the level of the verbosity. If the log level is at or higher in priority than the logger threshold, a message will print. The levels are:
DEBUGHighest verbosity showing all debug statements
TRACEShowing information about start and end of steps
INFOShow informative information (Default)
WARNShow warning messages
ERRORShow error messages
FATALBe silent except for fatal errors
Whether to keep the predicitons for the new data
A vector of characters specifying the recalibration method to apply
If not NULL, the number of people to sample from the target cohort
If you want to save the results enter the directory to save here
A list containing the performance for each validation_schema
Users need to input a trained model (the output of runPlp()) and new database connections. The function will return a list of length equal to the number of cdm_schemas input with the performance on the new data