evalmcmod: Evaluates a Monte Carlo Model

View source: R/evalmcmod.R

evalmcmodR Documentation

Evaluates a Monte Carlo Model

Description

Evaluates a mcmodel object (or a valid expression) using a specified number of simulations and with (or without) a specified seed.

Usage

evalmcmod(expr, nsv = ndvar(), nsu = ndunc(), seed = NULL)

Arguments

expr

a model of class mcmodel or a valid expression.

nsv

the number of simulations in the variability dimension.

nsu

the number of simulations in the uncertainty dimension.

seed

the random seed. If ‘⁠NULL⁠’ the seed is unchanged.

Details

The model is evaluated. Intermediate variables used to build the ‘⁠mc⁠’ object are not stored.

Value

The result of the evaluation — should be a ‘⁠mc⁠’ object.

Note

The seed is set at the beginning of the evaluation. Thus, the complete similarity of two evaluations with the same seed is not certain, depending on the structure of the model.

See Also

mcmodel, evalmccut to evaluate high-dimension models.

Examples

data(ec)
ec$modEC1
evalmcmod(ec$modEC1, nsv=100, nsu=100, seed=666)

mc2d documentation built on Oct. 23, 2026, 1:06 a.m.