simu8chain: simulates values for a given chain

Description Usage Arguments Value Examples

Description

A simulation is done with the object chain. The number of values to simulate is given by nbs. The function returns a data frame with simulations in rows and variables in columns. According to the @format of the nodes, more or less [random] variables are stored for each node.

Usage

1
simu8chain(chain, nbs=100)

Arguments

chain

/chain/ object to be simulated.

nbs

An integer indicating the desir

Value

returns a list with two components

\$df

A data frame with all the simulated (and kept) variables.

\$rr

A named vector with the results of a deterministic application of the chain (equivalent to the original Risk Ranger).

Examples

1
2
3
4
 prr3k("RESET"); # For R checking compliance
 simu8chain(prr.chain1, nbs=5);
 simu8chain(prr.chain2, nbs=5);
 simu8chain(prr.chain3, nbs=5);

prr documentation built on May 2, 2019, 6:35 p.m.

Related to simu8chain in prr...