Skip to contents

Find which other variables each variable is dependent on.

Usage

find_dependencies(sfm)

Arguments

sfm

Stock-and-flow model, object of class sdbuildR_xmile.

Value

Vector of dependencies (variable names in equation)

Examples

sfm <- xmile("SIR")
find_dependencies(sfm)
#> $Susceptible
#> character(0)
#> 
#> $Infected
#> character(0)
#> 
#> $Recovered
#> character(0)
#> 
#> $Total_Population
#> character(0)
#> 
#> $Effective_Contact_Rate
#> character(0)
#> 
#> $Delay
#> character(0)
#> 
#> $Beta
#> [1] "Effective_Contact_Rate" "Total_Population"      
#> 
#> $Lambda
#> [1] "Beta"     "Infected"
#> 
#> $Infection_Rate
#> [1] "Susceptible" "Lambda"     
#> 
#> $Recovery_Rate
#> [1] "Infected" "Delay"   
#>