<?xml version="1.0" encoding="UTF-8"?>
<resource xmlns="http://datacite.org/schema/kernel-4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.5/metadata.xsd">
  <identifier identifierType="DOI">10.7910/DVN/ZVC9W5</identifier>
  <creators>
    <creator>
      <creatorName nameType="Personal">Liu, Licheng</creatorName>
      <givenName>Licheng</givenName>
      <familyName>Liu</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID" schemeURI="https://orcid.org">https://orcid.org/0000-0002-9183-163X</nameIdentifier>
      <affiliation>Massachusetts Institute of Technology</affiliation>
    </creator>
    <creator>
      <creatorName nameType="Personal">Wang, Ye</creatorName>
      <givenName>Ye</givenName>
      <familyName>Wang</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID" schemeURI="https://orcid.org">https://orcid.org/0000-0001-5127-4245</nameIdentifier>
    </creator>
    <creator>
      <creatorName nameType="Personal">Xu, Yiqing</creatorName>
      <givenName>Yiqing</givenName>
      <familyName>Xu</familyName>
      <nameIdentifier nameIdentifierScheme="ORCID" schemeURI="https://orcid.org">https://orcid.org/0000-0003-2041-6671</nameIdentifier>
      <affiliation>Stanford University</affiliation>
    </creator>
  </creators>
  <titles>
    <title>Replication Data for: A Practical Guide to Counterfactual Estimators for Causal Inference with Time-Series Cross-Sectional Data</title>
  </titles>
  <publisher>Harvard Dataverse</publisher>
  <publicationYear>2022</publicationYear>
  <subjects>
    <subject>Social Sciences</subject>
    <subject>Imputation methods</subject>
    <subject>Counterfactual estimators</subject>
    <subject>Twoway fixed effects</subject>
    <subject>Parallel trends</subject>
    <subject>Interactive fixed effects</subject>
    <subject>Matrix completion</subject>
    <subject>Equivalence tests</subject>
    <subject>Placebo tests</subject>
    <subject>Time-series cross-sectional data</subject>
    <subject>Panel data</subject>
  </subjects>
  <contributors>
    <contributor contributorType="Producer">
      <contributorName nameType="Personal">Xu, Yiqing</contributorName>
      <givenName>Yiqing</givenName>
      <familyName>Xu</familyName>
    </contributor>
    <contributor contributorType="ContactPerson">
      <contributorName nameType="Personal">Xu, Yiqing</contributorName>
      <givenName>Yiqing</givenName>
      <familyName>Xu</familyName>
    </contributor>
  </contributors>
  <dates>
    <date dateType="Submitted">2022-03-02</date>
    <date dateType="Available">2022-05-02</date>
  </dates>
  <resourceType resourceTypeGeneral="Dataset"/>
  <sizes>
    <size>1355</size>
    <size>672</size>
    <size>4173</size>
    <size>3021</size>
    <size>279311</size>
    <size>116133</size>
    <size>9518</size>
    <size>3649</size>
    <size>323610</size>
    <size>8067</size>
    <size>230600</size>
    <size>660</size>
    <size>19285</size>
    <size>4414</size>
    <size>26583510</size>
    <size>320453</size>
    <size>23186</size>
    <size>937</size>
    <size>506086</size>
    <size>14684436</size>
    <size>3084</size>
    <size>23154</size>
    <size>8428</size>
    <size>5029</size>
    <size>15537</size>
    <size>112</size>
    <size>1818360</size>
    <size>610008</size>
    <size>5218</size>
    <size>4646569</size>
    <size>5583</size>
    <size>0</size>
    <size>137921</size>
    <size>268852</size>
  </sizes>
  <formats>
    <format>type/x-r-syntax</format>
    <format>text/plain</format>
    <format>text/plain</format>
    <format>type/x-r-syntax</format>
    <format>text/tab-separated-values</format>
    <format>application/gzip</format>
    <format>type/x-r-syntax</format>
    <format>type/x-r-syntax</format>
    <format>application/x-rlang-transport</format>
    <format>type/x-r-syntax</format>
    <format>application/x-rlang-transport</format>
    <format>text/plain</format>
    <format>type/x-r-syntax</format>
    <format>type/x-r-syntax</format>
    <format>application/x-rlang-transport</format>
    <format>application/x-rlang-transport</format>
    <format>application/x-rlang-transport</format>
    <format>text/plain</format>
    <format>application/gzip</format>
    <format>application/x-rlang-transport</format>
    <format>type/x-r-syntax</format>
    <format>application/x-rlang-transport</format>
    <format>text/plain</format>
    <format>type/x-r-syntax</format>
    <format>text/plain</format>
    <format>text/plain</format>
    <format>application/gzip</format>
    <format>text/tab-separated-values</format>
    <format>type/x-r-syntax</format>
    <format>application/x-rlang-transport</format>
    <format>type/x-r-syntax</format>
    <format>text/plain</format>
    <format>application/pdf</format>
    <format>application/pdf</format>
  </formats>
  <version>1.0</version>
  <rightsList>
    <rights rightsURI="info:eu-repo/semantics/openAccess"/>
    <rights rightsURI="https://dataverse.harvard.edu/api/datasets/:persistentId/versions/1.0/customlicense?persistentId=doi:10.7910/DVN/ZVC9W5">Custom terms specific to this dataset</rights>
  </rightsList>
  <descriptions>
    <description descriptionType="Abstract">This paper introduces a simple framework of counterfactual estimation for causal inference with time-series cross-sectional data, in which we estimate the average treatment effect on the treated by directly imputing counterfactual outcomes for treated observations. We discuss several novel estimators under this framework, including the fixed effects counterfactual estimator, interactive fixed effects counterfactual estimator, and matrix completion estimator. They provide more reliable causal estimates than conventional twoway fixed effects models when treatment effects are heterogeneous or unobserved time-varying confounders exist. Moreover, we propose a new dynamic treatment effects plot, along with several diagnostic tests, to help researchers gauge the validity of the identifying assumptions. We illustrate these methods with two political economy examples and develop an open-source package, fect, in both R and Stata to facilitate implementation.</description>
    <description descriptionType="Other">This dataset underwent an independent verification process that replicated the tables and figures in the primary article. For the supplementary materials, verification was performed solely for the successful execution of code. The verification process was carried out by the Odum Institute for Research in Social Science at the University of North Carolina at Chapel Hill. 
&lt;br&gt;&lt;/br&gt;
The associated article has been awarded Open Materials and Open Data Badges. Learn more about the Open Practice Badges from the &lt;a href="https://osf.io/tvyxz/wiki/home/" target="_blank"&gt;Center for Open Science&lt;/a&gt;.&lt;br&gt;&lt;/br&gt;
&lt;img src="https://odum.unc.edu/files/2020/03/OpenData_PR-1.png" alt="Open Data Badge" height="77" width="80"&gt;
&lt;img src="https://odum.unc.edu/files/2020/03/OpenMaterials_PR-1.png" alt="Open Materials Badge" height="77" width="80"&gt;</description>
  </descriptions>
  <geoLocations>
    <geoLocation/>
  </geoLocations>
</resource>
