R/bdpTraceplot.R

Defines functions bdpTraceplot

Documented in bdpTraceplot

###############################################################################
##
## Copyright: Giorgio Pioda, 2024
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the license, or
## any later version.
##
## This software is distributed in the hope that it will be
## useful, but WITHOUT ANY WARRANTY, without even the implied
## warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
## See the general R package license for details.
##
###############################################################################

#' Plot a traceplot of the sampled chains
#'
#' @export
#' @param bdpreg bdpreg object created with bdpreg
#' @param ... Arguments passed to `rstan::traceplot` (e.g. iter, chains).
#' @return Traceplot of the `stanfit` object
#'

bdpTraceplot <- function(bdpreg,...){

  stanRegr <- bdpreg$out

  rstan::traceplot(stanRegr,...)

}

Try the rstanbdp package in your browser

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

rstanbdp documentation built on Sept. 11, 2024, 7:41 p.m.