Infinite-Sum Modeling

Quantitative Analysis

EconMOD

A quantitative economic analysis workbench for GTAP/CGE aggregation, closures, shocks, and general-equilibrium solves in the browser.

Need an account or base-database access? Contact Infinite-Sum Modeling.

Open workbench →
Back to overviewLabels & indicators

03

Set elements & names

Rename elements, CSV import/export, permissions

The set-elements table lists member codes for regions, commodities, endowments, and similar sets, and lets you maintain a Chinese name and English name for each code. Those names appear in shock pickers, result tables, chart legends, and more; the codes themselves cannot change.

Entry points

Static database: Dataset overview → switch the lower data pane to Set elements.

Dynamic database: Dataset overview → Sets tab (alongside Overview / Raw data / Variables).

Static set-elements page:

Static · Set elements
Static · Set elements

Dynamic sets page (same editor table):

Dynamic · Sets
Dynamic · Sets

Permissions (who can edit)

Role / database type Can edit names?
Admin + base dataset Yes (shows Download name template / Import names / Save names)
Regular user + base dataset Read-only; prompt that only admins can edit
Any user + derived database Read-only; prompt that names inherit from the base dataset and must be edited there

Save uses an admin API; unsaved edits stay as a page draft.

UI elements

  1. Set switcher: e.g. REG, COMM, ENDW (buttons show element counts). The table below shows only the selected set.
  2. Filter elements: right-hand box filters the current set by code or name.
  3. Table columns
Column Editable Notes
Index No Order within the set (displayed from 1)
Code No Member code; solves and shock pickers depend on it
Chinese name Yes (when permitted) Preferred in Chinese UI
English name Yes (when permitted) Preferred in English UI; English does not fall back to Chinese—missing values show the code
  1. Export CSV: exports the current set (including draft names). Filename like {dataset-code}-{set-code}.csv; header set,index,code,name_zh,name_en.
  2. Download name template: empty template with header set,code,name_zh,name_en (BOM included).
  3. Import names: choose a CSV. Header must include set and code; name columns may be name_zh / 中文名称, name_en / 英文名称. Only existing (set, code) pairs in this database are updated; after import you see “Filled n names; save to apply”, then click Save names.
  4. Save names: writes the draft to the server. Only rows with at least one of Chinese/English filled are submitted; clearing both removes stored names for that member. Success message: set-element names saved.

Recommended rename flow (admins)

  1. Open a base dataset → Set elements (or dynamic Sets).
  2. Switch through REG / COMM / ENDW and similar sets.
  3. Edit Chinese name / English name in the table, or:
    • Download name template → fill locally → Import names → verify counts → Save names.
  4. Switch UI language to Chinese / English and confirm shock pickers or result tables look right.

Notes

  • Sets come from sets.har; if the database “does not provide sets.har”, set elements cannot be browsed.
  • Derived databases have no effective rename path: edit the parent base database; derived side inherits read-only.
  • Import never creates new codes; unknown set+code pairs are skipped silently.