#library("tsoutliers")
streamQsimplified <- function(x) {
dat.ts<- ts(x,frequency=1)
data.ts.outliers <- tso(dat.ts, types = c("AO", "LS", "TC", "IO", "SLS"))
Q = 1 - nrow(data.ts.outliers$outliers)/nrow(xy)
return(Q)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.