Skip to content

Instantly share code, notes, and snippets.

@peter-herman
peter-herman / example_MonteCarloGE.py
Last active June 10, 2024 19:01
MonteCarloGE example for "gegravity: General Equilibrium Gravity Modeling in Python"
__Author__ = "Peter Herman"
__Project__ = "gegravity"
__Created__ = "June 6, 2024"
__Description__ = '''A demonstration of the MonteCarloGE model/module'''
# ----
# Import some packages
# ----
# Note: The import statements are set to run from the github repository. To run the example code using the packaged
# version of gegravity, remove "src." from the gegravity import statement.
@peter-herman
peter-herman / example_OneSectorGE.py
Last active June 10, 2024 19:00
OneSectroGE Example for "gegravity: General Equilibrium Gravity Modeling in Python"
__Author__ = "Peter Herman"
__Project__ = "gegravity"
__Created__ = "March 01, 2021"
__Updated__ = "June 06, 2024"
__Description__ = """A demonstration of the OneSectorGE model and module"""
# ---
# Load Packages
# ---
# Note: The import statements are set to run from the github repository. To run the example code using the packaged
@peter-herman
peter-herman / sample_gravity_data.csv
Last active January 20, 2024 12:24
Sample Gravity Data (YPMT2016 + Dynamic Gravity, 2006, 30 countries)
exporter importer year trade Y E pta contiguity common_language lndist international
GBR AUS 2006 4310 925638 362227 0 0 1 9.7126 1
FIN AUS 2006 514 142759 362227 0 0 0 9.5997 1
USA AUS 2006 16619 5019964 362227 1 0 1 9.5963 1
IND AUS 2006 763 548517 362227 0 0 1 9.1455 1
SGP AUS 2006 8756 329817 362227 1 0 1 8.6732 1
CHE AUS 2006 1318 380556 362227 0 0 1 9.6876 1
ZAF AUS 2006 1135 190479 362227 0 0 1 9.2608 1
AUS AUS 2006 261365 305793 362227 0 0 1 7.0733 0
MYS AUS 2006 3283 305418 362227 0 0 1 8.7082 1
{
// Place your snippets for latex here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",