R/runDynPred.R

runDynPred <- function (type = c("JM", "lme")) {
    type <- match.arg(type)
    if (requireNamespace("shiny", quietly = TRUE)) {
        if (type == "JM") {
            shiny::runApp(system.file("shiny_app_JM", package = "JMbayes"))
        } else {
            shiny::runApp(system.file("shiny_app_lme", package = "JMbayes"))
        }
    } else {
        cat("\npackage 'shiny' is not installed...")
    }
}

Try the JMbayes package in your browser

Any scripts or data that you put into this service are public.

JMbayes documentation built on Jan. 9, 2020, 9:07 a.m.