max_residual: Get the maximun residual of a BSM at a given iteration

Description Usage Arguments Examples

Description

Get the maximun residual of a BSM at a given iteration

Usage

1
max_residual(x, iter = NULL, type = c("normal", "absolute"))

Arguments

x

bsm object as returned by brokenstick or optBrokenstick.

iter

the iteration number for which the maximum residual is to be returned (Ri). If NULL then iter is set to the last iteration in x

type

To choose in c('normal', 'absolute'). The second choice returning the absolute value of the first.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(exses)
dv <- tdrply(identity, 1:2, no = 100, obj = exses)[[1]]
bsm <- brokenstick(dv) 
max_residual(bsm, iter = 5)

## Not run: 
max_residual(eco.mem(bsm), iter = 5) # error
max_residual(eco.mem(bsm), iter = 4)

## End(Not run)

SESman/rbl documentation built on May 9, 2019, 11:10 a.m.