sd_impact_inputs {readsdr}R Documentation

Construct inputs for performing structural analysis via the impact method

Description

Construct inputs for performing structural analysis via the impact method

Usage

sd_impact_inputs(desc_list)

Arguments

desc_list

Element 'description' from the list returned by read_xmile()

Value

A list of three elements. The first element, flows, is a data frame that lists all the stock-flow links in the model. Further, this data frame describes the equation that governs the link and whether the link is an inflow (+) or an outflow (-). The second element, pathways, is a data frame that lists all the pathways among stocks. The third element, velocities, is a data frame in which each row corresponds to a stock. Each row consists of two columns (name & equation).

Examples

  filepath  <- system.file("models/", "SIR.stmx", package = "readsdr")
  mdl       <- read_xmile(filepath)
  desc_list <- mdl$description
  sd_impact_inputs(desc_list)

[Package readsdr version 0.3.0 Index]