california_prop99 | R Documentation |
A dataset containing per-capita cigarette consumption (in packs).
In year 1989 California imposed a Tobacco tax. The column treated
is 1 from then on for California.
data(california_prop99)
A data frame with 1209 rows and 4 variables:
US state name, character string
Year, integer
per-capita cigarette consumption, numeric
the treatmed indicator 0: control, 1: treated, numeric
Abadie, Alberto, Alexis Diamond, and Jens Hainmueller. "Synthetic control methods for comparative case studies: Estimating the effect of California’s tobacco control program." Journal of the American statistical Association 105, no. 490 (2010): 493-505.
# Load tobacco sales in long panel format.
data("california_prop99")
# Transform to N*T matrix format required for synthdid,
# where N is the number of units and T the time periods.
setup <- panel.matrices(california_prop99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.