File: par_samps_reactive.R

package info (click to toggle)
r-cran-shinystan 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,172 kB
  • sloc: sh: 15; makefile: 7
file content (11 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
# reactive function to get samples for a single parameter
par_samps_all <- reactive({
  param <- input$param
  p <- which(PARAM_NAMES == param)
  SAMPS_all[, , p]
})
par_samps_post_warmup <- reactive({
  param <- input$param
  p <- which(PARAM_NAMES == param)
  SAMPS_post_warmup[, , p]
})