Learn R Programming

DSAIRM (version 0.5.0)

run_model: A function that runs a DSAIRM/DSAIDE app

Description

This function takes a model and model settings and runs it. It runs the simulation determined by the model settings and returns simulation results.

Usage

run_model(modelsettings, modelfunction)

Arguments

modelsettings

vector of model settings. needs to contain inputs expected by simulation function. Also needs to provide further information.

modelfunction

The name of a simulation function to be run with the indicated settings.

Value

A list named "result" with the simulated dataframe and associated metadata.

Details

This function runs a model for specific settings. It is similar to analyze_model in the modelbuilder package.