jbplot_runstest: JABBA runs test plots

View source: R/jabba_plots.R

jbplot_runstestR Documentation

JABBA runs test plots

Description

Residual diagnostics with runs test p-value and 3xsigma limits

Usage

jbplot_runstest(
  jabba,
  index = NULL,
  mixing = "less",
  output.dir = getwd(),
  add = FALSE,
  as.png = FALSE,
  single.plots = add,
  width = NULL,
  height = NULL,
  verbose = TRUE
)

Arguments

jabba

output list from fit_jabba

index

option to plot specific indices (numeric & in order)

mixing

c("less","greater","two.sided"). Default "less" is checking for positive autocorrelation only

output.dir

directory to save plots

add

if true par() is surpressed within the plot function

as.png

save as png file of TRUE

single.plots

if TRUE plot invidual fits else make multiplot

width

plot width

height

plot hight

verbose

silent option

Examples

data(iccat)
bet= iccat$bet
jb = build_jabba(catch=bet$catch,cpue=bet$cpue,se=bet$se,assessment="BET",scenario = "Ref",model.type = "Pella",igamma = c(0.001,0.001),verbose=FALSE)
fit = fit_jabba(jb,quickmcmc=TRUE,verbose=FALSE)
jbrunstest(fit)
jbrunstest(fit,index=2)
jbplot_runstest(fit,verbose=FALSE)

jabbamodel/JABBA documentation built on Nov. 2, 2024, 12:50 p.m.