Learn R Programming

WACS (version 1.1.0)

WACSsimul: Performs simulations based on estimated parameters of the WACS model

Description

Performs simulations based on estimated parameters of the WACS model

Usage

WACSsimul(wacspar, from, to, first.day = NULL, REJECT = FALSE)

Arguments

wacspar

Parameters of the WACS model estimated with WACSestim

from

Starting date of the simulation (format: "yyyy-mm-dd")

to

Ending date of the simulation (format: "yyyy-mm-dd")

first.day

Conditioning values for first day (optional)

REJECT

Boolean indicating whether a rejection technique is used to guarantee variables within bounds. Default is FALSE. In this case, values outside bounds are forced to the bounds.

Value

A list containing the simulation results

Examples

Run this code
# NOT RUN {
  ## Simple example
  data(ClimateSeries)
  ThisData = WACSdata(ClimateSeries)
  ThisPar  = WACSestim(ThisData)
  ThisSim  = WACSsimul(ThisPar, from="1995-01-01", to="2012-12-31")
# }

Run the code above in your browser using DataLab