createOutcomeMatrices: Create a list of empty outcome matrix variables for a...

createOutcomeMatricesR Documentation

Create a list of empty outcome matrix variables for a specified outcome set. The variables to create are those from the outcome set specified by "outcome_module_name".

Description

Create a list of empty outcome matrix variables for a specified outcome set. The variables to create are those from the outcome set specified by "outcome_module_name".

Usage

createOutcomeMatrices(simframe, outcome_module_name, iterations)

Arguments

simframe

simulation frame

outcome_module_name

name of the outcomeset to create variables for

iterations

either a vector of names for each iteration, eg: ("Year 5", "Year 6" ...) or a scalar specifying the number of iterations.

Value

A dataframe of outcome variables. Each output variable is a matrix of simvalues by iterations. Each matrix is assigned the "varname" attribute that names the source variable in the simframe that will be used during simulation to fill the matrix. This source variable is the same name as the name outcome matrix.


kcha193/simarioV2 documentation built on April 8, 2024, 4:51 p.m.