Learn R Programming

PatientLevelPrediction (version 6.4.0)

viewPlp: viewPlp - Interactively view the performance and model settings

Description

This is a shiny app for viewing interactive plots of the performance and the settings

Usage

viewPlp(runPlp, validatePlp = NULL, diagnosePlp = NULL)

Value

Opens a shiny app for interactively viewing the results

Arguments

runPlp

The output of runPlp() (an object of class 'runPlp')

validatePlp

The output of externalValidatePlp (on object of class 'validatePlp')

diagnosePlp

The output of diagnosePlp()

Details

Either the result of runPlp and view the plots

Examples

Run this code
if (FALSE) { # rlang::is_interactive() && rlang::is_installed("OhdsiShinyAppBuilder")
  # takes too long 
data("simulationProfile")
plpData <- simulatePlpData(simulationProfile, n= 1000)
saveLoc <- file.path(tempdir(), "viewPlp", "development")
results <- runPlp(plpData, saveDirectory = saveLoc)
# view result files
dir(saveLoc, recursive = TRUE)
# open shiny app
viewPlp(results)
# clean up, shiny app can't be opened after the following has been run
unlink(saveLoc, recursive = TRUE)

}

Run the code above in your browser using DataLab