Description Usage Arguments Examples
View source: R/compare_multiple_realizations.R
Plot multiple realizations of a model Useful for checking model appropriateness
1 | plot_multiple_realizations(data, results, plot = c("all"), scales = "free_y")
|
data |
The actual and the hypothetical realizations in tidy data format |
results |
The ACF and Spectral Density values for the actual and hypothetical realizations in tidy data format |
plot |
A vector of options to plot (Default = c("all")) Other options: 'realization', 'acf', 'spectrum' |
scales |
The scales argument to be passed to ggplot facet_wrap layer (Default = 'free_y') Other appropriate options: 'fixed' |
1 2 3 4 5 6 7 8 | library(tswge)
data("sunspot.classic")
est = est.arma.wge(sunspot.classic,p=8)
r = generate_multiple_realization(x = sunspot.classic,
phi = est$phi, theta = est$theta, vara = est$avar,
seed = 11)
plot_multiple_realizations(data = r$data, results = r$results)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.