Cause-specific mortality Validation package
- Analytics use case(s): Patient-Level Prediction
- Study type: Clinical Application
- Tags: -
- Study lead: Chungsoo Kim, Seng Chan You, Rae Woong Park*
- Study lead forums tag: [Chungsoo_Kim], [SCYou], [RWPark]
- Study start date: June 1, 2019
- Study end date: -
- Protocol: -
- Publications: -
- Results explorer: -
Validation of cause of death predictive model to other databases.
Instructions To Build Package
- Build the package by clicking the R studio 'Install and Restart' button in the built tab
Instructions To Run Package
library(ValidationCauseSpecificMortality)
# USER INPUTS
#=======================
# The folder where the study intermediate and result files will be written:
outputFolder <- "./ValidationResult"
# Specify where the temporary files (used by the ff package) will be created:
options(fftempdir = "location with space to save big data")
# Details for connecting to the server:
dbms <- "you dbms"
user <- 'your username'
pw <- 'your password'
server <- 'your server'
port <- 'your port'
connectionDetails <- DatabaseConnector::createConnectionDetails(dbms = dbms,
server = server,
user = user,
password = pw,
port = port)
# Add the database containing the OMOP CDM data
cdmDatabaseSchema <- 'cdm database schema'
# Add a database with read/write access as this is where the cohorts will be generated
cohortDatabaseSchema <- 'work database schema'
oracleTempSchema <- NULL
# table name where the cohorts will be generated
cohortTable <- 'ValidationCohort'
#=======================
execute(connectionDetails,
databaseName,
cdmDatabaseSchema,
cohortDatabaseSchema,
oracleTempSchema,
cohortTable,
outputFolder,
createCohorts = T,
runValidation = T,
createValidationTable = F,
causeValidation = F,
packageResults = F,
minCellCount = 1,
sampleSize = NULL)
PatientLevelPrediction::viewMultiplePlp("outputFolder")
Development status
Under development. Do not use