viewMultiplePlp {PatientLevelPrediction} | R Documentation |
open a local shiny app for viewing the result of a multiple PLP analyses
Description
open a local shiny app for viewing the result of a multiple PLP analyses
Usage
viewMultiplePlp(analysesLocation)
Arguments
analysesLocation |
The directory containing the results (with the analysis_x folders) |
Details
Opens a shiny app for viewing the results of the models from various T,O, Tar and settings settings.
Value
Opens a shiny app for interactively viewing the results
Examples
connectionDetails <- Eunomia::getEunomiaConnectionDetails()
Eunomia::createCohorts(connectionDetails)
databaseDetails <- createDatabaseDetails(connectionDetails = connectionDetails,
cdmDatabaseSchema = "main",
cdmDatabaseName = "Eunomia",
cdmDatabaseId = "1",
targetId = 1,
outcomeIds = 3)
modelDesign <- createModelDesign(targetId = 1,
outcomeId = 3,
modelSettings = setLassoLogisticRegression())
saveLoc <- file.path(tempdir(), "viewMultiplePlp", "development")
runMultiplePlp(databaseDetails = databaseDetails, modelDesignList = list(modelDesign),
saveDirectory = saveLoc)
# view result files
dir(saveLoc, recursive = TRUE)
# open shiny app
viewMultiplePlp(analysesLocation = saveLoc)
# clean up, shiny app can't be opened after the following has been run
unlink(saveLoc, recursive = TRUE)
[Package PatientLevelPrediction version 6.4.1 Index]