Description Usage Arguments Details Author(s) Examples
plot.BDA
plots results from beta drift analyses.
1 2 |
x |
an object of class |
single |
logical. If |
... |
additional parameters. |
plot.BDA
produces three plots for each parameter of the baseline
model of the corresponding BDA
function. Unless single
is
set to TRUE
, all three plots for a parameter are displayed in a
single plot window.
The first plot, titled "time drift", displays the drift of the parameter across time. In addition to the parameter itself, a 15-knot cubic smooth spline is displayed as a light-blue dashed line. The solid horizontal red line represents the parameter estimate of the baseline model with the 95 confidence interval as a red-shaded area surrounding it. The solid horizontal blue line represents the mean of the drift series.
The second plot, titled "horizon drift", displays the drift of the parameter with respect to the estimation window size. In addition to the parameter itself, a 5-knot cubic smooth spline is displayed as a light-blue dashed line. The blue-shaded area represents the 95 parameters. The solid red vertical line highlights the estimation window size of the baseline model.
The third plot, titled "jackknife", displays the outcome of the jackknife procedure for the baseline model. The light red-shaded and dark red-shaded areas represent p-values <0.5 and <0.75 respectively, as implied by the baseline model.
IMPORTANT NOTE
: This package was developed with the GUI
of RStudio in mind. The plotting function creates a potentially large number
of plots which can be comfortably viewed in RStudio, but require some
preparations in the standard R GUI. Start by executing dev.new()
, which
opens a graphical device. Next, click the "History" tab and then click
"Recording" in the drop-down menu. If you run the plotting function now,
you can jump through the plots using the PageUp and PageDown key on your
keyboard.
Markus Peter Auer <mp.auer@meanerreversion.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
###################################################
#### Full example ####
###################################################
results <- BDA(data = FFfactors, spec = (VOO~SP500),
horizon = 250, doplot = FALSE)
plot(results)
## End(Not run)
###################################################
#### CRAN-compatible example ####
###################################################
results <- BDA(data = FFfactors[nrow(FFfactors):(nrow(FFfactors)-300),],
spec = (VOO~SP500),horizon = 250, doplot = FALSE)
plot(results)
message("NOTE: This is a shortened example. Reference the manual for more complex examples")
|
Loading required package: xts
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
BDA was completed successfully!
BDA was completed successfully!
NOTE: This is a shortened example. Reference the manual for more complex examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.