Scenario specification

Scenario specification

Details

R6 class used to store the data and model components needed to simulate scenarios from a fitted solarModel object.

Note

Version 1.0.3

Public fields

location

Tibble containing the name of the reference location and its coordinates.

target

Character, target variable.

quiet

Logical. If TRUE, suppress selected messages and warnings.

control

Named list with date range and simulation setup values.

simulations

List of simulated scenario data sets.

Active bindings

place

Character value with the reference place.

ARMA

List of stored ARMA model parameters used for simulation.

GARCH

List of stored GARCH model parameters used for simulation.

transform

Transformation object copied from the model specification.

data_sim

Tibble containing the data used as the simulation template.

emp

Tibble containing empirical data stored in the specification.

nsim

Integer number of stored simulations.

scenarios

Nested tibble built from stored simulations.

Methods


Method new()

Initialize a solarScenario_spec object.

Usage

solarScenario_spec$new(
  model,
  from = "2010-01-01",
  to = "2010-12-31",
  theta = 0,
  exclude_known = FALSE,
  seed = 1,
  quiet = FALSE
)

Arguments

model

A fitted solarModel object.

from

Date or character value coercible to Date. First date of the scenario period.

to

Date or character value coercible to Date. Last date of the scenario period.

theta

Numeric value stored in the simulation data as theta.

exclude_known

Logical. If TRUE, empirical data stored in the specification are restricted to dates from from to to.

seed

Integer seed stored for scenario simulation.

quiet

Logical. If TRUE, suppress selected messages and warnings.


Method prob()

Marginal mixture probabilities.

Usage

solarScenario_spec$prob(nmonth)

Arguments

nmonth

Integer vector of month numbers.

Returns

A numeric vector or object returned by the stored probability model's predict() method.


Method print()

Print a summary of the scenario specification.

Usage

solarScenario_spec$print()

Returns

Invisibly returns NULL.


Method clone()

The objects of this class are cloneable with this method.

Usage

solarScenario_spec$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.