Skip to contents

Function to run random meteorological simulations on a gbm model

Usage

metSim(
  dw_model,
  newdata,
  metVars = c("ws", "wd", "air_temp"),
  n.core = 4,
  B = 200
)

Arguments

dw_model

Model object from running buildMod().

newdata

Data set to which to apply the model. If missing the data used to build the model in the first place will be used.

metVars

The variables that should be randomly varied.

n.core

Number of cores to use.

B

Number of simulations

Value

a tibble

See also

buildMod() to build a gbm model

Author

David Carslaw