jbrunstest: JABBA runs test

View source: R/jabba_utils.R

jbrunstestR Documentation

JABBA runs test

Description

Residual diagnostics with runs test p-value

Usage

jbrunstest(jabba, index = NULL, mixing = "less")

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

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.