viewMultiplePlp | R Documentation |
open a local shiny app for viewing the result of a multiple PLP analyses
viewMultiplePlp(analysesLocation)
analysesLocation |
The directory containing the results (with the analysis_x folders) |
Opens a shiny app for viewing the results of the models from various T,O, Tar and settings settings.
Opens a shiny app for interactively viewing the results
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.