ceumicrodata / economic-diplomacy

0 stars 0 forks source link

Save `shipments-wide` by origin and destination country #30

Closed korenmiklos closed 3 years ago

korenmiklos commented 3 years ago

@zaveczgergo Please save the data for this simulation in a .csv file.

reporter_country,partner_country,year,shipments1,shipments2,...,shipments97
HU,RU,2017,250,120,...,1

Shipments should be integers. For each (d,o,t), round up shipments.

generate shipments = ceil(trade_volume / shipment_size)
reshape wide shipments, i(reporter_country partner_country year) j(product)

I can estimate the Dirichlet MN from this.