{"part":"task","text":"# Datasets\nPass a dataset's id as the `dataset` argument.\n{\n \"id\": \"ds_0007\",\n \"rows\": 8281,\n \"description\": \"| Variable Name | Description |\\n| --- | --- |\\n| (index) | Sequential row number from the CSV export; has no substantive meaning. |\\n| fcode | Anonymous manufacturing establishment identifier. Stable across years within this file but masked to prevent reidentification or linkage to external sources. |\\n| year | Calendar year of record (2009\u20132012). Reflects the period over which audits, orders, and operational performance were summarized. |\\n| compyr | Annual indicator for whether the establishment was deemed compliant with the sourcing agent\u2019s code of conduct in that year (1 = compliant, 0 = not compliant). Compliance is determined from social and environmental audits; values may be missing in years without an audit. |\\n| gradeyr | Audit grade for the year mapped to a numeric scale (A = 3, B = 2, C = 1, D = 0). Grades summarize findings from factory audits that assess labor, health and safety, environmental, and legal practices. May be blank in years without an audit. |\\n| lestspend_dall | Natural log of the estimated total value of customer orders routed through the sourcing agent to the factory in that calendar year, expressed in thousands of constant 2012 USD. Underlying nominal values were originally reported in annual bins; midpoints were used and deflated to 2012 dollars before logging. |\\n| inspyr | Share of quality inspections passed during the year (0\u20131), calculated from the agent\u2019s inspection records for orders it handled at the factory. Represents the fraction of checks that met specified quality criteria. |\\n| ontimeyr | On-time delivery rate during the year (0\u20131), computed from order-tracking data for shipments coordinated by the agent, where \u201con time\u201d indicates delivery on or before the scheduled date. |\\n| factoryobs_perf | Count of underlying observations used to compute the year\u2019s performance rates (e.g., number of inspections or orders contributing to inspyr and ontimeyr). Larger values imply more stable rate estimates. |\\n| factorytt | Panel time index for convenience in longitudinal analyses (1 = 2009, 2 = 2010, 3 = 2011, 4 = 2012). |\\n\\nDataset Context:\\nThis panel assembles administrative records from a multinational sourcing intermediary that connects buyers\u2014primarily retailers and brand owners in advanced economies\u2014with manufacturing suppliers across 36 countries. The intermediary maintains a supply-chain responsibility program with a written code of conduct covering labor conditions, environmental practices, health and safety, and compliance with local law. Factories are periodically audited by trained assessors, typically during one- to two-day site visits that review documents, conduct walkthroughs, and interview personnel. Audits produce letter grades (A\u2013D), with the intermediary treating A/B as meeting its standard and C/D as not meeting it. For each calendar year, the data retain a factory\u2019s grade and a binary indicator derived from these audits; some factories are visited multiple times in a year, while others may go a year without a recorded audit.\\n\\nThe same intermediary aggregates commercial activity by factory and year from its order-management systems. Because customers provided annual purchasing in value bands, the dataset converts those bands to midpoints, deflates them to constant 2012 U.S. dollars using import price indices for consumer goods, and applies a natural log transformation. Operational performance metrics\u2014on-time delivery and quality inspection pass rates\u2014are calculated from order- and shipment-level tracking for business transacted through the agent; these rates are only observed in years when the intermediary coordinated orders at the factory, and their precision varies with the number of underlying events.\\n\\nCoverage spans 2009\u20132012 and a mix of product categories with a substantial share of apparel. Factory identities and any corporate names were anonymized under a data access agreement. Users should note common features of this type of administrative data: audit results reflect conditions at the time of inspection rather than continuous monitoring; performance rates pertain to the subset of a factory\u2019s portfolio handled by the intermediary; and annual purchasing values are estimates derived from reported bins rather than exact ledgers. Despite these limits, the dataset offers rare, harmonized, multi-country visibility into auditing outcomes, order flows, and supplier performance within global manufacturing supply chains during the early 2010s.\",\n \"columns\": {\n  \"fcode\": \"int64\",\n  \"year\": \"float64\",\n  \"compyr\": \"float64\",\n  \"gradeyr\": \"float64\",\n  \"lestspend_dall\": \"float64\",\n  \"inspyr\": \"float64\",\n  \"ontimeyr\": \"float64\",\n  \"factoryobs_perf\": \"float64\",\n  \"factorytt\": \"int64\"\n }\n}\n{\n \"id\": \"ref_panel\",\n \"rows\": 2154,\n \"description\": \"Firm rows of 2010 and 2011: firms observed in both years, switching 0->1 or staying at 0\",\n \"columns\": {\n  \"fcode\": \"int64\",\n  \"year\": \"float64\",\n  \"compyr\": \"float64\",\n  \"lestspend_dall\": \"float64\",\n  \"nyears\": \"int64\",\n  \"w2010\": \"float64\",\n  \"w2011\": \"float64\",\n  \"treat\": \"int64\",\n  \"post\": \"int64\",\n  \"treat_post\": \"int64\"\n }\n}\n{\n \"id\": \"ref_wpost\",\n \"rows\": 2119,\n \"description\": \"Each firm's max of compyr in 2011\",\n \"columns\": {\n  \"fcode\": \"int64\",\n  \"w2011\": \"float64\"\n }\n}\n{\n \"id\": \"ref_wpre\",\n \"rows\": 1884,\n \"description\": \"Each firm's max of compyr in 2010\",\n \"columns\": {\n  \"fcode\": \"int64\",\n  \"w2010\": \"float64\"\n }\n}\n{\n \"id\": \"ref_years\",\n \"rows\": 2431,\n \"description\": \"How many of 2010 and 2011 each firm is observed in\",\n \"columns\": {\n  \"fcode\": \"int64\",\n  \"nyears\": \"int64\"\n }\n}"}