Skip to content

Commit 9cc9f4d

Browse files
committed
fix(docs): repair UTF-8 characters and MathJax inline rendering in tables
1 parent 9185afe commit 9cc9f4d

4 files changed

Lines changed: 24 additions & 24 deletions

File tree

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,4 @@ compress_html:
140140

141141
mathjax:
142142
source: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS_CHTML
143-
config: 'MathJax.Hub.Config({ TeX: { equationNumbers: { autoNumber: "AMS" } } })'
143+
config: 'MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }, TeX: { equationNumbers: { autoNumber: "AMS" } } })'

docs/01_stata.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Stata packages are listed in alphabetical order. A list of [R packages is given
1919
| [csdid](https://friosavila.github.io/playingwithstata/main_csdid.html) | `ssc install csdid, replace` | Fernando Rios-Avila; Pedro H.C. Sant'Anna; Brantly Callaway | [Callaway & Sant'Anna (2020)](https://www.sciencedirect.com/science/article/abs/pii/S0304407620303948) |
2020
| [csdid2](https://github.com/friosavila/stpackages/tree/main/csdid2) | [Instructions](https://github.com/friosavila/stpackages/tree/main/csdid2) | Fernando Rios-Avila | [Callaway & Sant'Anna (2020)](https://www.sciencedirect.com/science/article/abs/pii/S0304407620303948) |
2121
| [did2s](https://github.com/kylebutts/did2s_stata) | `ssc install did2s, replace` | Kyle Butts | [Gardner (2022)](https://arxiv.org/abs/2207.05943) |
22-
| [did_multiplegt](https://github.com/chaisemartinPackages) | `ssc install did_multiplegt, replace` | Clément de Chaisemartin; Xavier D'Haultfoeuille | [de Chaisemartin & D'Haultfoeuille (2020)](https://www.aeaweb.org/articles?id=10.1257/aer.20181169); [de Chaisemartin & D'Haultfoeuille (2021)](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3751060) |
23-
| [did_multiplegt_dyn](https://github.com/chaisemartinPackages) | `ssc install did_multiplegt_dyn, replace` | Clément de Chaisemartin; Diego Ciccia; Xavier D'Haultfoeuille; Felix Knau; Mélitine Malézieux; Doulo Sow | [de Chaisemartin & D'Haultfoeuille (2024a)](https://doi.org/10.1162/rest_a_01414); [de Chaisemartin et al. (2024c)](https://drive.google.com/file/d/1NGgScujLCCS4RrwdN-PC1SnVigfBa32h/view) |
22+
| [did_multiplegt](https://github.com/chaisemartinPackages) | `ssc install did_multiplegt, replace` | Clément de Chaisemartin; Xavier D'Haultfoeuille | [de Chaisemartin & D'Haultfoeuille (2020)](https://www.aeaweb.org/articles?id=10.1257/aer.20181169); [de Chaisemartin & D'Haultfoeuille (2021)](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3751060) |
23+
| [did_multiplegt_dyn](https://github.com/chaisemartinPackages) | `ssc install did_multiplegt_dyn, replace` | Clément de Chaisemartin; Diego Ciccia; Xavier D'Haultfoeuille; Felix Knau; Mélitine Malézieux; Doulo Sow | [de Chaisemartin & D'Haultfoeuille (2024a)](https://doi.org/10.1162/rest_a_01414); [de Chaisemartin et al. (2024c)](https://drive.google.com/file/d/1NGgScujLCCS4RrwdN-PC1SnVigfBa32h/view) |
2424
| [did_imputation](https://github.com/borusyak/did_imputation) | `ssc install did_imputation, replace` | Kirill Borusyak; Xavier Jaravel; Jann Spiess | [Borusyak, Jaravel, Spiess (2024)](https://academic.oup.com/restud/advance-article/doi/10.1093/restud/rdae007/7601390) |
2525
| [did_stepwise](https://github.com/nikoharm/did_stepwise) | [Instructions](https://github.com/nikoharm/did_stepwise) | Nikolaj Harmon | [Harmon (2024)](https://web.econ.ku.dk/nharmon/docs/harmon2022difference.pdf) |
2626
| [drdid](https://friosavila.github.io/playingwithstata/main_drdid.html) | `ssc install drdid, replace` | Fernando Rios-Avila; Pedro H.C. Sant'Anna; Asjad Naqvi | [Sant'Anna & Zhao (2020)](https://www.sciencedirect.com/science/article/abs/pii/S0304407620301901) |
@@ -35,16 +35,16 @@ Stata packages are listed in alphabetical order. A list of [R packages is given
3535
| xtdidregress | Stata 17+ | StataCorp | Canonical panel DiD (official Stata implementation) |
3636
| [honestdid](https://github.com/mcaceresb/stata-honestdid) | `ssc install honestdid, replace` | Mauricio Caceres Bravo; Jonathan Roth | [Rambachan & Roth (2023)](https://www.restud.com/a-more-credible-approach-to-parallel-trends/) |
3737
| [jwdid](https://friosavila.github.io/playingwithstata/main_jwdid.html) | `ssc install jwdid, replace` | Fernando Rios-Avila | [Nagengast, Rios-Avila, Yotov (2024)](https://ideas.repec.org/p/ris/drxlwp/2024_005.html), [Wooldridge notes](https://www.dropbox.com/sh/zj91darudf2fica/AADj_jaf5ZuS1muobgsnxS6Za?dl=0) |
38-
| [lpdid](https://github.com/danielegirardi/lpdid) | `ssc install lpdid, replace` | Alexander Busch; Daniele Girardi | [Dube, Girardi, JordÃ, Taylor (2023)](https://www.nber.org/papers/w31184) |
39-
| [multe](https://github.com/gphk-metrics/stata-multe) | [Instructions](https://github.com/gphk-metrics/stata-multe) | Mauricio Caceres Bravo; Paul Goldsmith-Pinkham | [Goldsmith-Pinkham, Hull, Kolesár (2024)](https://arxiv.org/abs/2106.05024) |
38+
| [lpdid](https://github.com/danielegirardi/lpdid) | `ssc install lpdid, replace` | Alexander Busch; Daniele Girardi | [Dube, Girardi, Jordá, Taylor (2023)](https://www.nber.org/papers/w31184) |
39+
| [multe](https://github.com/gphk-metrics/stata-multe) | [Instructions](https://github.com/gphk-metrics/stata-multe) | Mauricio Caceres Bravo; Paul Goldsmith-Pinkham | [Goldsmith-Pinkham, Hull, Kolesár (2024)](https://arxiv.org/abs/2106.05024) |
4040
| [pretrends](https://github.com/mcaceresb/stata-pretrends) | `ssc install pretrends, replace` | Mauricio Caceres Bravo; Jonathan Roth | [Roth (2022)](https://www.aeaweb.org/articles?id=10.1257/aeri.20210236) |
4141
| [robustate](https://sites.google.com/site/yuyasasaki/Home/stata/stata-command-robustate) | `ssc install robustate, replace` | Yuya Sasaki; Takuya Ura | [Sasaki & Ura (2021)](https://www.cambridge.org/core/journals/econometric-theory/article/abs/estimation-and-inference-for-moments-of-ratios-with-robustness-against-large-trimming-bias/6505FD01751EE01FEFFD34071C873FB6) |
42-
| [sdid](https://github.com/Daniel-Pailanir/sdid) | `ssc install sdid, replace` | Damian Clarke; Daniel Pailañir | [Arkhangelsky, Athey, Hirshberg, Imbens, Wager (2021)](https://www.aeaweb.org/articles?id=10.1257/aer.20190159) |
42+
| [sdid](https://github.com/Daniel-Pailanir/sdid) | `ssc install sdid, replace` | Damian Clarke; Daniel Pailañir | [Arkhangelsky, Athey, Hirshberg, Imbens, Wager (2021)](https://www.aeaweb.org/articles?id=10.1257/aer.20190159) |
4343
| [sdid_event](https://github.com/DiegoCiccia/sdid/tree/main/sdid_event) | [Instructions](https://github.com/DiegoCiccia/sdid/tree/main/sdid_event) | Diego Ciccia | [Ciccia (2024)](https://arxiv.org/abs/2407.09565) |
4444
| [stackedev](https://sites.google.com/view/joshbleiberg) | `ssc install stackedev, replace` | Joshua Bleiberg | [Cengiz, Dube, Lindner, Zipperer (2019)](https://academic.oup.com/qje/article/134/3/1405/5484905) |
4545
| [staggered_stata](https://github.com/jonathandroth/staggered#stata-implementation) | [Instructions](https://github.com/jonathandroth/staggered#stata-implementation) | Jonathan Roth | [Roth & Sant'Anna (2023)](https://www.journals.uchicago.edu/doi/abs/10.1086/726581) |
46-
| [twowayfeweights](https://github.com/chaisemartinPackages/twowayfeweights) | `ssc install twowayfeweights, replace` | Clément de Chaisemartin; Xavier D'Haultfoeuille; Antoine Deeb | [de Chaisemartin & D’Haultfoeuille (2020)](https://www.aeaweb.org/articles?id=10.1257/aer.20181169) |
46+
| [twowayfeweights](https://github.com/chaisemartinPackages/twowayfeweights) | `ssc install twowayfeweights, replace` | Clément de Chaisemartin; Xavier D'Haultfoeuille; Antoine Deeb | [de Chaisemartin & D'Haultfoeuille (2020)](https://www.aeaweb.org/articles?id=10.1257/aer.20181169) |
4747
| [wooldid](https://github.com/thegland/wooldid) | `ssc install wooldid, replace` | Thomas Hegland | [Wooldridge (2021)](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3906345) |
4848
| [xtevent](https://github.com/JMSLab/xtevent) | `ssc install xtevent, replace` | Simon Freyaldenhoven; Christian Hansen; Jorge Perez Perez; Jesse M. Shapiro | [Freyaldenhoven, Hansen, Shapiro (2019)](https://www.aeaweb.org/articles?id=10.1257/aer.20180609) |
49-
| [yatchew_test](https://github.com/chaisemartinPackages/yatchew_test) | `ssc install yatchew_test, replace` | Clément de Chaisemartin; Diego Ciccia; Xavier D'Haultfoeuille; Felix Knau; Doulo Sow | [Yatchew (1997)](https://www.sciencedirect.com/science/article/pii/S0165176597002188?via%3Dihub); [de Chaisemartin and D'Haultfoeuille (2024b)](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4284811) |
49+
| [yatchew_test](https://github.com/chaisemartinPackages/yatchew_test) | `ssc install yatchew_test, replace` | Clément de Chaisemartin; Diego Ciccia; Xavier D'Haultfoeuille; Felix Knau; Doulo Sow | [Yatchew (1997)](https://www.sciencedirect.com/science/article/pii/S0165176597002188?via%3Dihub); [de Chaisemartin and D'Haultfoeuille (2024b)](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4284811) |
5050

docs/03_python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Only dedicated DiD packages are listed below.
2222
| pysynthdid | [GitHub](https://github.com/MasaAsami/pysynthdid) | Masa Asami | Arkhangelsky et al. (2021) |
2323
| synthdid.py | [GitHub](https://github.com/d2cml-ai/synthdid.py) | d2cml-ai contributors | Arkhangelsky et al. (2021) |
2424
| diffindiff | [GitHub](https://github.com/geowieland/diffindiff_official) | Geo Wieland and contributors | Difference-in-differences workflows in Python |
25-
| LPDiD | [GitHub](https://github.com/pjlambert/LPDiD) | P. J. Lambert | Dube, Girardi, JordÃ, Taylor (2023) |
25+
| LPDiD | [GitHub](https://github.com/pjlambert/LPDiD) | P. J. Lambert | Dube, Girardi, Jordá, Taylor (2023) |
2626

2727

2828

docs/code_stata/06_01_twfe.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ The 2x2 setup can be summarized with the following table:
3131

3232
| | Treatment = 0 | Treatment = 1 | *Difference* |
3333
| ------------------ | -------------------- | ---------------------------------------- | -------------------- |
34-
| **Post = 0** | \(\beta_0\) | \(\beta_0 + \beta_1\) | \(\beta_1\) |
35-
| **Post = 1** | \(\beta_0 + \beta_2\) | \(\beta_0 + \beta_1 + \beta_2 + \beta_3\) | \(\beta_1 + \beta_3\) |
36-
| Difference | \(\beta_2\) | \(\beta_2 + \beta_3\) | \(\beta_3\) |
34+
| **Post = 0** | \\(\beta_0\\) | \\(\beta_0 + \beta_1\\) | \\(\beta_1\\) |
35+
| **Post = 1** | \\(\beta_0 + \beta_2\\) | \\(\beta_0 + \beta_1 + \beta_2 + \beta_3\\) | \\(\beta_1 + \beta_3\\) |
36+
| Difference | \\(\beta_2\\) | \\(\beta_2 + \beta_3\\) | \\(\beta_3\\) |
3737

3838
---
3939

@@ -51,31 +51,31 @@ $$
5151
\beta_7
5252
$$
5353

54-
. Rather than writing one large table, it is easier to present results for \(C = 0\) (main group) and \(C = 1\) (comparison group). The difference between those two DDs is exactly \(\beta_7\).
54+
. Rather than writing one large table, it is easier to present results for \\(C = 0\\) (main group) and \\(C = 1\\) (comparison group). The difference between those two DDs is exactly \\(\beta_7\\).
5555

56-
Main group (\(C = 0\)):
56+
Main group (\\(C = 0\\)):
5757

5858
| | T = 0 | T = 1 | Difference |
5959
| --------------- | -------------------- | ---------------------------------------- | -------------------- |
60-
| **P = 0** | \(\beta_0\) | \(\beta_0 + \beta_3\) | \(\beta_3\) |
61-
| **P = 1** | \(\beta_0 + \beta_1\) | \(\beta_0 + \beta_1 + \beta_3 + \beta_4\) | \(\beta_3 + \beta_4\) |
62-
| Difference | \(\beta_1\) | \(\beta_1 + \beta_4\) | \(\beta_4\) |
60+
| **P = 0** | \\(\beta_0\\) | \\(\beta_0 + \beta_3\\) | \\(\beta_3\\) |
61+
| **P = 1** | \\(\beta_0 + \beta_1\\) | \\(\beta_0 + \beta_1 + \beta_3 + \beta_4\\) | \\(\beta_3 + \beta_4\\) |
62+
| Difference | \\(\beta_1\\) | \\(\beta_1 + \beta_4\\) | \\(\beta_4\\) |
6363

64-
Comparison group (\(C = 1\)):
64+
Comparison group (\\(C = 1\\)):
6565

6666
| | T = 0 | T = 1 | Difference |
6767
| --------------- | ---------------------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------- |
68-
| **P = 0** | \(\beta_0 + \beta_2\) | \(\beta_0 + \beta_2 + \beta_3 + \beta_5\) | \(\beta_3 + \beta_5\) |
69-
| **P = 1** | \(\beta_0 + \beta_1 + \beta_2 + \beta_6\) | \(\beta_0 + \beta_1 + \beta_2 + \beta_3 + \beta_4 + \beta_5 + \beta_6 + \beta_7\) | \(\beta_3 + \beta_4 + \beta_5 + \beta_7\) |
70-
| Difference | \(\beta_1 + \beta_6\) | \(\beta_1 + \beta_4 + \beta_6 + \beta_7\) | \(\beta_4 + \beta_7\) |
68+
| **P = 0** | \\(\beta_0 + \beta_2\\) | \\(\beta_0 + \beta_2 + \beta_3 + \beta_5\\) | \\(\beta_3 + \beta_5\\) |
69+
| **P = 1** | \\(\beta_0 + \beta_1 + \beta_2 + \beta_6\\) | \\(\beta_0 + \beta_1 + \beta_2 + \beta_3 + \beta_4 + \beta_5 + \beta_6 + \beta_7\\) | \\(\beta_3 + \beta_4 + \beta_5 + \beta_7\\) |
70+
| Difference | \\(\beta_1 + \beta_6\\) | \\(\beta_1 + \beta_4 + \beta_6 + \beta_7\\) | \\(\beta_4 + \beta_7\\) |
7171

7272
Let's take the difference between the two matrices or (C = 1) - (C = 0):
7373

7474
| | T = 0 | T = 1 | Difference |
7575
| --------------- | -------------------- | ---------------------------------------- | -------------------- |
76-
| **P = 0** | \(\beta_2\) | \(\beta_2 + \beta_5\) | \(\beta_5\) |
77-
| **P = 1** | \(\beta_2 + \beta_6\) | \(\beta_2 + \beta_5 + \beta_6 + \beta_7\) | \(\beta_5 + \beta_7\) |
78-
| Difference | \(\beta_6\) | \(\beta_6 + \beta_7\) | \(\beta_7\) |
76+
| **P = 0** | \\(\beta_2\\) | \\(\beta_2 + \beta_5\\) | \\(\beta_5\\) |
77+
| **P = 1** | \\(\beta_2 + \beta_6\\) | \\(\beta_2 + \beta_5 + \beta_6 + \beta_7\\) | \\(\beta_5 + \beta_7\\) |
78+
| Difference | \\(\beta_6\\) | \\(\beta_6 + \beta_7\\) | \\(\beta_7\\) |
7979

8080
This final table makes it clear that the DDD estimand is
8181

0 commit comments

Comments
 (0)