splits | R Documentation |
Searches for outlier splits in a "timeSeries"
object.
splits(x, sd = 3, complement = TRUE, ...)
x |
a |
sd |
|
complement |
a logical flag, should the outlier series or its complements be returned? |
... |
arguments to be passed. |
This function finds splits in financial price or index series. If a price or index is splitted we observe a big jump of several standard deviations in the returns, which is identified usually as an outlier.
a "timeSeries"
object
returns
,
cumulated
,
drawdowns
,
spreads
,
midquotes
,
index2wealth
## Create a Return Series with a Split -
data <- runif(12, -1, 1)
data[6] <- 20
x <- timeSeries(data, timeCalendar(), units="RUNIF")
x
## Search for the Split:
splits(x, sd=3, complement=TRUE)
splits(x, sd=3, complement=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.