Skip to content

chrismuris/CITE-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

CITE simulation code

This repository contains the Julia simulation code for the paper "Estimating interaction effects with panel data" by Muris and Wacker.

Link to the paper on arXiv: https://arxiv.org/abs/2211.01557

Structure

The simulation code is organized into two main folders:

  • bias-rmse: Contains the code for the bias and relative efficiency simulations (Sections 6.1 and 6.2 of the paper).
    • The src/ directory contains source files with the data generating process code and the estimators.

    • The main-Figure-....jl files run the simulations that underlie the figures in the paper.

  • inference: Contains the code for the statistical inference simulations (Section 6.3 of the paper).

Installation

The following Julia packages are required to run the simulations. You can install them by running the following command in your Julia REPL:

import Pkg; Pkg.add(["DataFrames", "Random", "Distributions", "LinearAlgebra", "Statistics", "ProgressMeter", "Printf", "Plots", "LaTeXStrings", "StatsPlots", "FixedEffects", "FixedEffectModels"])

How to run

The scripts are written in Julia. To reproduce the figures from the paper, you can run the main .jl files located in each subfolder.

Bias and relative efficiency (Figures 1 & 2)

Navigate to the bias-rmse directory. The following scripts generate the corresponding figures:

  • Figure 1 (Bias analysis):
    • main-Figure-1a.jl
    • main-Figure-1b.jl
  • Figure 2 (Relative efficiency analysis):
    • main-Figure-2a.jl
    • main-Figure-2b.jl
    • main-Figure-2c.jl
    • main-Figure-2d.jl
    • main-Figure-2e.jl
    • main-Figure-2f.jl

Inference (Figures 3 & 4)

Navigate to the inference directory. The following scripts generate the corresponding figures:

  • Figure 3 (Distribution of t-values and estimators):
    • Figure3.jl
  • Figure 4 (Rejection frequencies):
    • Figure4a.jl
    • Figure4b.jl

Output

The simulation scripts save the output figures as PDF files in the output directory within each respective subfolder (bias-rmse/output/ and inference/output/).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages