-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
976cab1
commit 96f5700
Showing
13 changed files
with
93 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,16 @@ Type: Package | |
Title: lightning-fast staggered Difference-in-Difference estimators | ||
Version: 0.9 | ||
Date: 2023-10-06 | ||
Author@R: c(person(given = "Lin-Tung", | ||
family = "Tsai", | ||
role = "aut", | ||
person(given = "Maxwell", | ||
family = "Kellogg", | ||
role = "aut"), | ||
person(given = "Kuan-Ju", | ||
family = "Tseng", | ||
role = "aut")) | ||
Authors@R: c( | ||
person("Lin-Tung","Tsai", | ||
role = c("aut", "cre"), | ||
email = "[email protected]"), | ||
person(given = "Maxwell", | ||
family = "Kellogg", , | ||
role = "aut"), | ||
person(given = "Kuan-Ju", | ||
family = "Tseng", , | ||
role = "aut")) | ||
Maintainer: Lin-Tung Tsai <[email protected]> | ||
Description: **fastdid** is a lightning-fast implementation of Callaway and Sant'Anna's (2021)<https://www.sciencedirect.com/science/article/pii/S0304407620303948> staggered Difference-in-Differences (DiD) estimators that speeds up the process by magnitudes. With fastdid You can run DiD designs for millions of units in just seconds, not hours. | ||
License: GPL (>= 2) | ||
|
@@ -21,8 +22,7 @@ Imports: | |
BMisc, | ||
collapse, | ||
dreamerr, | ||
speedglm, | ||
stringr | ||
speedglm | ||
Suggests: ggplot2, did | ||
Encoding: UTF-8 | ||
RoxygenNote: 7.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(fastdid) | ||
export(plot_did_dynamics) | ||
export(sim_did) | ||
import(BMisc) | ||
import(collapse) | ||
import(data.table) | ||
import(dreamerr) | ||
import(ggplot2) | ||
import(speedglm) | ||
import(stringr) | ||
importFrom(stats,binomial) | ||
importFrom(stats,fitted) | ||
importFrom(stats,qnorm) | ||
importFrom(stats,quantile) | ||
importFrom(stats,rnorm) | ||
importFrom(stats,sd) | ||
importFrom(stats,vcov) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
NULL | ||
|
||
if(FALSE){ | ||
text <- ". agg_weight att att_cont att_treat attgt cohort cohort_size | ||
conf_lwb conf_upb const cont_ipw_weight count delta_y element_rect | ||
element_text event_time pg placeholder post.y pre.y ps s se target | ||
tau time_fe treat_ipw_weight treat_latent type unit unit_fe weight x | ||
x2 x_trend y y0 y1 y2 time" | ||
text <- text |> str_remove_all("\\\n") |>str_split(" ") |> unlist() | ||
text <- text[text!=""] | ||
text <- text |> str_flatten(collapse = "','") | ||
text <- paste0("c('", text, "')") | ||
} | ||
|
||
# quiets concerns of R CMD check re: the .'s that appear in pipelines and data.table variables | ||
utils::globalVariables(c('.','agg_weight','att','att_cont','att_treat','attgt','cohort','cohort_size','conf_lwb','conf_upb', | ||
'const','cont_ipw_weight','count','delta_y','element_rect','element_text','event_time','pg','placeholder', | ||
'post.y','pre.y','ps','s','se','target','tau','time_fe', | ||
'treat_ipw_weight','treat_latent','type','unit','unit_fe','weight','x','x2','x_trend','y','y0','y1','y2', 'time', 'weights')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,11 @@ if(FALSE){ | |
test_all() | ||
} | ||
|
||
if(FALSE){ | ||
roxygenise() | ||
build() | ||
check() | ||
} | ||
|
||
if(FALSE){ | ||
use_github_actions() | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.