rod: rod

rod,FLQuant-methodR Documentation

rod

Description

Regime shifts Evidence for regime shifts are explored using a a sequential t-test algorithm (STARS; rodionov2004sequential) as modified by Szuwalski et al., (submitted)

Usage

## S4 method for signature 'FLQuant'
rod(object, ...)

Arguments

object

an object of class FLQuant

...

any other arguments

Details

Returns a data.frame

Examples

## Not run: 
 object=rlnorm(1,FLQuant(0,dimnames=list(year=1:30)),.3)
 pg=rod(object) 
 ggplot(object) +
     geom_polygon(aes(year,data,group=regime),
         fill="lavender",col="blue",
         lwd=.25,data=pg,alpha=.75)+
     geom_point(aes(year,data))+
     geom_line(aes(year,data))

## End(Not run)


flr/FLife documentation built on March 29, 2024, 5:50 p.m.