inst/ShinyStan/server_files/pages/diagnose/ppcheck/server/hists_resids.R

pp_hist_resids <- reactive({
  pp_tests()
  s <- sample_id_for_resids()
  resids <- get_y() - get_yrep()[s,]
  names(resids) <- paste0("resids(yrep_", s, ")")
  do.call(".pp_hist_resids", args = list(resids = resids))
})

output$pp_hist_resids_out <- renderPlot({
  x <- suppressMessages(pp_hist_resids())
  suppress_and_print(x)
}, bg = "transparent")

Try the shinystan package in your browser

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

shinystan documentation built on March 18, 2022, 5:17 p.m.