Nothing
## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(collapse = TRUE, comment = "#>", fig.width = 7,
fig.height = 4, dpi = 72, out.width = "100%")
## -----------------------------------------------------------------------------
library(SynthesizerPlus)
## -----------------------------------------------------------------------------
fit <- fit_synthesizer(ldeaths)
fit
syn <- generate(fit, seed = 1)
plot_ts(ldeaths, syn)
plot_acf(ldeaths, syn, lag_max = 24)
## -----------------------------------------------------------------------------
long <- generate(fit, n = 240, start = c(1980, 1), seed = 2)
tsp(long)
## -----------------------------------------------------------------------------
returns <- diff(log(EuStockMarkets))
fit_mv <- fit_synthesizer(returns)
syn_mv <- generate(fit_mv, seed = 1)
round(cor(returns) - cor(syn_mv), 3)
## -----------------------------------------------------------------------------
fit_b <- fit_synthesizer(lh, method = "stationary", block_length = 8)
syn_b <- generate(fit_b, n = 96, seed = 1)
plot_ts(lh, syn_b)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.