### Install clubSandwich from CRAN Source: https://github.com/jepusto/clubsandwich/blob/main/README.md Install the clubSandwich package from the Comprehensive R Archive Network. ```r install.packages("clubSandwich") ``` -------------------------------- ### Install clubSandwich Development Version from GitHub Source: https://github.com/jepusto/clubsandwich/blob/main/README.md Install the latest development version of the clubSandwich package directly from GitHub using the remotes package. ```r install.packages("remotes") remotes::install_github("jepusto/clubSandwich") ``` -------------------------------- ### Browse clubSandwich Vignettes Source: https://github.com/jepusto/clubsandwich/blob/main/README.md View the available vignettes for the clubSandwich package to explore its functionalities and examples. ```r browseVignettes(package="clubSandwich") ``` -------------------------------- ### Panel Model with Unit and Occasion Effects Source: https://github.com/jepusto/clubsandwich/blob/main/paper_ClusterRobustTesting/ClusterRobustTesting_notes_and_variations.tex This specification represents a common model for balanced panels, including additional fixed effects for each unique measurement occasion. ```latex y_{jt} = \bm{r}_{jt} \bs\alpha + \gamma_j + \nu_t + \epsilon_{jt} ``` -------------------------------- ### Load MathJax for Mathematical Formulas Source: https://github.com/jepusto/clubsandwich/blob/main/auxilliary/cluster-wild-bootstrap.html This script dynamically loads the MathJax library to render mathematical formulas on the page. It is configured to use TeX-AMS-MML_HTMLorMML. ```javascript (function () { var script = document.createElement("script"); script.type = "text/javascript"; script.src = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"; document.getElementsByTagName("head")[0].appendChild(script); })(); ``` -------------------------------- ### Difference-in-Differences Model Source: https://github.com/jepusto/clubsandwich/blob/main/paper_ClusterRobustTesting/ClusterRobustTesting_FE_models.tex Presents the analytic model used for the difference-in-differences design within the simulation study. This model accounts for cluster, unit, and time point effects. ```latex y_hijk = _hk + _i + _j + _ijk, ``` -------------------------------- ### Apply Bootstrap Styling to Pandoc Tables Source: https://github.com/jepusto/clubsandwich/blob/main/auxilliary/cluster-wild-bootstrap.html This JavaScript function applies Bootstrap table classes to Pandoc-generated tables. It should be called when the document is ready. ```javascript function bootstrapStylePandocTables() { $('tr.header').parent('thead').parent('table').addClass('table table-condensed'); } $(document).ready(function () { bootstrapStylePandocTables(); }); ``` -------------------------------- ### Data Generation Model Source: https://github.com/jepusto/clubsandwich/blob/main/paper_ClusterRobustTesting/ClusterRobustTesting_FE_models.tex Specifies the data-generating process for tri-variate outcome data, including unit means, treatment effects, and idiosyncratic errors. Used to simulate data for hypothesis testing performance evaluation. ```latex y_hijk = _i + _hi + _ijk, ``` -------------------------------- ### Basic Fixed Effects Panel Model Source: https://github.com/jepusto/clubsandwich/blob/main/paper_ClusterRobustTesting/ClusterRobustTesting_notes_and_variations.tex This equation describes a basic fixed effects panel data model where y_jt is the outcome, r_jt covariates, gamma_j a unit-specific intercept, and epsilon_jt the error term. ```latex y_{jt} = \bm{r}_{jt} \bs\alpha + \gamma_j + \epsilon_{jt} ```