Skip to content

Commit b47b0ee

Browse files
committed
switch direction of wave logic for filtering exp treatment var
1 parent 55952c6 commit b47b0ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

facebook/qsf-tools/generate-codebook.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ add_static_fields <- function(codebook,
399399
codebook <- bind_rows(codebook, static_fields) %>%
400400
filter(!(variable == "module" & wave < 11), # module field is only available for wave >= 11
401401
!(variable %in% c("wave", "UserLanguage", "fips") & wave < 4), # wave, UserLangauge, and fips fields are only available for wave >= 4
402-
!(variable == "w12_treatment" & wave == 12.5), # experimental arm field is only available for wave == 12.5
402+
!(variable == "w12_treatment" & wave != 12.5), # experimental arm field is only available for wave == 12.5
403403
variable != "Random_Number"
404404
)
405405

0 commit comments

Comments
 (0)