simulate.glmwgen: Simulates new weather trajectories

Description Usage Arguments

View source: R/simulate.R

Description

Simulates new weather trajectories.

Usage

1
2
3
4
## S3 method for class 'glmwgen'
simulate(object, nsim = 1, seed = NULL, start_date = NA,
  end_date = NA, simulation_locations = NULL,
  control = glmwgen_simulation_control(), verbose = T)

Arguments

object

A glmwgen model.

nsim

number of response vectors to simulate. Defaults to 1.

seed

an object specifying if and how the random number generator should be initialized (<e2><80><98>seeded<e2><80><99>).

Either NULL or an integer that will be used in a call to set.seed before simulating the response vectors. If set, the value is saved as the "seed" attribute of the returned value. The default, NULL will not change the random generator state.

start_date

a start date in text format (will be converted using as.Date) or a date object.

end_date

an end date in text format (will be converted using as.Date) or a date object.

simulation_locations

a SpatialPoints object with the points at which weather should be simulated. If not set, the locations used to fit the model will be used.

control

a glmwgen simulation control list.


schmidtfederico/glmwgen documentation built on May 29, 2019, 3:41 p.m.