Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ Imports:
magrittr,
osqp,
purrr,
tidyr,
quadprog,
reshape2,
Rglpk,
sandwich
Remotes:
asheshrambachan/HonestDiD
asheshrambachan/HonestDiD,
conroylau/lpinfer
RoxygenNote: 7.3.2
Suggests:
gurobi,
Expand Down
2 changes: 1 addition & 1 deletion R/partial_density_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ compute_partial_densities_and_shares <- function(df,

yvalues <- sort(unique(yvec))
mvalues <- unique(mvec)
my_values <- purrr::cross_df(list(m = mvalues, y = yvalues)) %>%
my_values <- tidyr::expand_grid(m = mvalues, y = yvalues) %>%
dplyr::arrange(m, y) %>%
dplyr::select(y, m)
my_values$m <- as.numeric(as.character(my_values$m))
Expand Down
2 changes: 1 addition & 1 deletion R/test_sharp_null.R
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ devtools::install_github('conroylau/lpinfer')")
#Note we need to do this here so that the yvalues remain constant across boostrap draws
yvalues <- unique(yvec)
mvalues <- unique(mvec)
my_values <- purrr::cross_df(list(m=mvalues,y=yvalues)) %>%
my_values <- tidyr::expand_grid(m=mvalues,y=yvalues) %>%
dplyr::arrange(m,y) %>%
dplyr::select(y,m)

Expand Down
2 changes: 1 addition & 1 deletion R/test_sharp_null_arp.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ df[[y]] <- yvec

yvalues <- unique(yvec)
mvalues <- unique(mvec)
my_values <- purrr::cross_df(list(m=mvalues,y=yvalues)) %>%
my_values <- tidyr::expand_grid(m=mvalues,y=yvalues) %>%
dplyr::arrange(m,y) %>%
dplyr::select(y,m)

Expand Down
2 changes: 1 addition & 1 deletion R/test_sharp_null_arp_binary_m.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test_sharp_null_arp_binary_m <- function(df,

yvalues <- sort(unique(yvec))
mvalues <- unique(mvec)
my_values <- purrr::cross_df(list(m=mvalues,y=yvalues)) %>%
my_values <- tidyr::expand_grid(m=mvalues,y=yvalues) %>%
dplyr::arrange(m,y) %>%
dplyr::select(y,m)

Expand Down
2 changes: 1 addition & 1 deletion R/test_sharp_null_binary_m.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ test_sharp_null_binary_m <- function(df,

yvalues <- sort(unique(yvec))
mvalues <- unique(mvec)
my_values <- purrr::cross_df(list(m=mvalues,y=yvalues)) %>%
my_values <- tidyr::expand_grid(m=mvalues,y=yvalues) %>%
dplyr::arrange(m,y) %>%
dplyr::select(y,m)

Expand Down
2 changes: 1 addition & 1 deletion R/test_sharp_null_coxandshi_binary_m.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test_sharp_null_coxandshi_binary_m <- function(df,

yvalues <- sort(unique(yvec))
mvalues <- unique(mvec)
my_values <- purrr::cross_df(list(m=mvalues,y=yvalues)) %>%
my_values <- tidyr::expand_grid(m=mvalues,y=yvalues) %>%
dplyr::arrange(m,y) %>%
dplyr::select(y,m)

Expand Down
2 changes: 1 addition & 1 deletion R/test_sharp_null_fsst_binary_m.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test_sharp_null_fsst_binary_m <- function(df,

yvalues <- sort(unique(yvec))
mvalues <- unique(mvec)
my_values <- purrr::cross_df(list(m=mvalues,y=yvalues)) %>%
my_values <- tidyr::expand_grid(m=mvalues,y=yvalues) %>%
dplyr::arrange(m,y) %>%
dplyr::select(y,m)

Expand Down