plot.tsbootgce {GCEstim}R Documentation

Plot Diagnostics for a tsbootgce object

Description

Three plots (selectable by which) are currently available to evaluate a tsbootgce object.

Usage

## S3 method for class 'tsbootgce'
plot(
  x,
  which = c(1, 2),
  group = TRUE,
  group.ncol = NULL,
  group.nrow = NULL,
  ci.levels = c(0.9, 0.95, 0.99),
  ci.method = c("hdr", "basic", "percentile"),
  seed = object$seed,
  lambda = 1,
  col = NULL,
  plot.lines = TRUE,
  legend.position = "bottom",
  ...
)

Arguments

x

Fitted tsbootgce object.

which

Integers from 1 to 3. The default is which = c(1,2).

group

Boolean value. If group = TRUE, the default, plots are grouped in one image.

group.ncol

Number of columns (see ggarrange). The default is group.ncol = NULL.

group.nrow

Number of rows. (see ggarrange). The default is group.nrow = NULL.

ci.levels

the confidence levels (maximum of 4) required to compute the confidence interval. The default is ci.levels = c(0.90, 0.95, 0.99).

ci.method

One of c("hdr", "basic", "percentile"). The default is ci.method = "hdr" (see hdr).

seed

A single value, interpreted as an integer, for reproducibility or NULL for randomness. The default is seed = object$seed.

lambda

Box-Cox transformation parameter. Value between 0 and 1. The default is lambda = 1 (see hdr).

col

Vector of colors for regions. The default is col = NULL.

plot.lines

Boolean. The default is plot.lines = TRUE.

legend.position

The default is legend.position = "bottom".

...

additional arguments.

Value

A ggplot object.

Author(s)

Jorge Cabral, jorgecabral@ua.pt

See Also

tsbootgce

Examples


res.tsbootgce <-
  tsbootgce(
    formula = CO2 ~ 1 + L(GDP, 1) + L(EPC, 1) + L(EU, 1),
    data = moz_ts)

plot(res.tsbootgce, which = 2, group = TRUE)



[Package GCEstim version 0.1.0 Index]