Errata
These errata are errors in the printed book. These changes are implemented in this online version.
- On pg. 53, footnote 1: “Here we are referring to an ‘inquiry model’ not a ‘reference model,’ as discussed in Section 2.2.1” should read “Here we are referring to an ‘inquiry model’ not a ‘reference model,’ as discussed in Section 2.1.1”.
- On pg. 69, Table 8.1, row 1 now reads
simple_rs(N = 100, prob = .25)
instead ofsimple_rs(N = 100, p = .25)
; row 2 now readscomplete_rs(N = 100, n = 25)
instead ofsimple_rs(N = 100, p = 0.25)
; row 4:cluster_ra
should becluster_rs
; and in row 6,cluster_ra
should becluster_rs
andstrata_ra
should bestrata_rs
. Thanks to Bjorn Van Campenhout for identifying the first two errors. - On pg. 101: “The \(p\)-value is the probability this also goes with the misplaced section estimates of 15 or larger” should read “The \(p\)-value is the probability under the null model of obtaining estimates of 15 or larger.”
- On pg. 158: The second code block, which includes the code
MASS::mvrnorm
, should readn = 1000
notN = 1000
. - On pgs. 221-224: We corrected an error in Declaration 16.5 and Declaration 16.6 that erroneously switched the values of the treated and control potential outcomes when X = 0 with the values when X is at the cutoff. We modified Declaration 16.5 and Figure 16.9 to describe the design with respect to the cutoff and updated the figure caption and text to reflect these changes.
- On pg. 225: The last line of the code was changed from
diagnose_designs
todiagnose_designs()
. - On pgs. 124-125: We removed a reference to the power formula from Gerber and Green (2012). We now discuss a generic restatement of statistical power.
Due to final copyediting by the Press, the website version may differ slightly from the print version. If you discover a discrepency, please email us at graeme.blair@gmail.com, acoppock@gmail.com, and macartan@gmail.com and we will fix it and send you DeclareDesign stickers!
Substantive changes
- On pg. 210-211, we changed the inquiry to be the ATT rather than the ATE, to reflect the more common practice of targeting the ATT in matching designs. Declaration 16.2 now declares the ATT as the inquiry; we now write “Our inquiry is the average treatment effect on the treated (ATT). This is the average treatment effect among the units who are in fact treated.”; and Figure 16.4 is updated to reflect the change in the x-axis title.
Code updates
We are committed to maintaining the code in this book as the R ecosystem evolves. The following changes reflect differences between the printed book and the online version.
- On pg. 103, Declaration 9.3 now reads
.summary = ~tidy(., exponentiate = TRUE)
instead of.summary = ~tidy_stan(., exponentiate = TRUE)
, reflecting the use of the standardbroom.mixed
package for tidying stan objects. In addition, the libraryrdss
is replaced with the librarybroom.mixed
in the declaration. - On pg. 212-213, Declaration 16.3 now uses updated syntax from the
DIDmultiplegt
package, specificallymode = 'old'
is added. We also addSys.setenv(RGL_USE_NULL = TRUE)
to address package dependency issues.