risk_transmission: modeling the risk transmission of the trade network

Description Usage Arguments Value

View source: R/risk_transimission.r

Description

modeling the risk transmission of the trade network

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
risk_transmission(
  net,
  mode = c("Node_driven", "Edge_driven"),
  n_id = NULL,
  e_id = NULL,
  alpha = 0.1,
  alpha_lower_limit = 0.1,
  alpha_increase_type = c("export", "degree"),
  return_net = FALSE
)

Arguments

net

a tidygraph object

mode

two different supply shock scenario

n_id

the initial shocked node id

e_id

the initial shocked edge id

alpha

the threshold above which the infected nodes during the transmission process will change into active state, the default is 0.1, if it is NULL, the alpha value for each country will be scaled to [alpha_lower_limit,1] based on the export value or the degree of each country.

alpha_lower_limit

the lower limit of the alpha value range when alpha=NULL.

alpha_increase_type

export or degree, in the mitigate scenario, export means we will increase the alpha according to the export volume, degree means the alpha parameter will increase according to the node degree

return_net

whether return the final network structure or not

Value

the active node size for each iteration


zlfccnu/econophysics documentation built on Feb. 23, 2022, 10:22 p.m.