This repository stores the code to replicate the figures in:
by
Jiao Li, Duccio Gamannossi degl'Innocenti and Matthew D. Rablen
Reference:
-
A_not_eq.R : script to compute and plot Figure 1
-
license.txt : license to be applied to the files in the repo
-
p_by_W_by_A.R : script to compute and plot Figure 2
-
package_setup.R : script to install needed packages
-
W0_A_R_by_t_prog.R : script to compute and plot Figure 3
-
doc : folder containing the article
- Marketed Tax Avoidance An Economic Analysis.pdf : article
-
fig : folder containing figures produced with the scripts
- Figure_1(a).pdf : Figure 1(a)
- Figure_2(a).pdf : Figure 2(a)
- Figure_2(b).pdf : Figure 2(b)
- Figure_3(a).pdf : Figure 3(a)
- Figure_3(b).pdf : Figure 3(b)
-
M : folder containing Mathematica notebooks
- analytics.nb : notebook with the analytical derivations used in the R scripts
-
R : folder containing R scripts to be sourced
- fun.R : script storing all the functions needed to run the main scripts
- par.R : script storing all the general parameters used in the main scripts
-
tikz : folder containing the tikz of the figures
- Figure 1(a).tex : standalone tikz of Figure 1(a)
- Figure 2(a).tex : standalone tikz of Figure 2(a)
- Figure 2(b).tex : standalone tikz of Figure 2(b)
- Figure 3(a).tex : standalone tikz of Figure 3(a)
- Figure_3(b).tex : standalone tikz of Figure 3(b)
- tmp_Figure_1(a) : tikz dictionary of Figure 1(a)
- tmp_Figure_2(a) : tikz dictionary of Figure 2(a)
- tmp_Figure_2(b) : tikz dictionary of Figure 2(b)
- tmp_Figure_3(a) : tikz dictionary of Figure 3(a)
- tmp_Figure_3(b) : tikz dictionary of Figure 3(b)
In order to set up the working environment:
- Start a new R-project in an empty folder
- Copy the content of the repo to the project folder
- Run the script package_setup.R to install the needed packages
- Run any of the scripts
The scripts have been tested on Win 10, R-4.1.1, RStudio-1.4.1717
The files are distributed under BSD license. For more information, please check the license.txt file.
For any question, suggestion or comment, write to: mail@dgdi.me