Skip to content
Merged
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: 2 additions & 2 deletions R/preprocess.R
Original file line number Diff line number Diff line change
Expand Up @@ -745,10 +745,10 @@ run_preprocess_multPeriods <- function(yname,
small_groups <- gsize[V1 < reqsize]
# Warn if some groups are small
if (nrow(small_groups) > 0) {
gpaste <- paste(small_groups[, treat], collapse = ",")
gpaste <- paste(small_groups[, first_treat], collapse = ",")
warning(paste0("Be aware that there are some small groups in your dataset.\n Check groups: ", gpaste, "."))

if (0 %in% small_groups[, treat] & control_group == "nevertreated") {
if (0 %in% small_groups[, first_treat] & control_group == "nevertreated") {
stop("Never treated group is too small, try setting control_group = \"notyettreated\"")
}
}
Expand Down