Computes Runs Test p-values

# S4 method for a4aFitSA,FLIndices
runstest(fit, obs, combine = TRUE)

Arguments

fit

The result of a model fit.

obs

The observations used in the fit.

combine

Should ages be combined by addition, defaults to TRUE.

...

Extra arguments.

Value

A list with elements 'p.values' and 'pass'.

Examples

data(sol274)
# Call on a a4aFitSA object
runstest(fit, indices)
#>          lcl       ucl p.value qname  pass
#> 1 -0.6023269 0.6023269   0.013   BTS FALSE
#> 2 -0.9891978 0.9891978   0.000   SNS FALSE
#
runstest(index(fit), lapply(indices, index))
#>          lcl       ucl p.value qname  pass
#> 1 -0.6023269 0.6023269   0.013   BTS FALSE
#> 2 -0.9891978 0.9891978   0.000   SNS FALSE