Learn R Programming

BayesianFROC (version 0.3.0)

pairs_plot_if_divergent_transition_occurred: Pairs plot for divergent transition

Description

If divergent transition occurs, the author often forget the variable par or pars. So, I made this to avoid such confusion.

Usage

pairs_plot_if_divergent_transition_occurred(
  StanS4class,
  character.representing.paramter = "z"
)

Arguments

StanS4class

An S4 object of class stanfitExtended which is an inherited class from the S4 class stanfit. This R object is a fitted model object as a return value of the function fit_Bayesian_FROC().

It can be passed to DrawCurves(), ppp() and ... etc

character.representing.paramter

Character, surrounded by "", indicating the paramter of model.

Examples

Run this code
# NOT RUN {
\dontrun{

# Create a fitted model object of class stanfitExtended  inherited from stanfit.

 fit <- fit_Bayesian_FROC( ite  = 1111,
                           summary = FALSE,
                           cha = 1,
                           Null.Hypothesis = FALSE,
                           dataList = dd )

# Pairs plot to examine the divergent transition.

 if (interactive()){grDevices::dev.new()}
   pairs_plot_if_divergent_transition_occurred(fit)
 if (interactive()){grDevices::dev.off()}

}
    
# }
# NOT RUN {

# }

Run the code above in your browser using DataLab