Skip to content

Commit 2bc9462

Browse files
committed
remove likert/profile naming scheme
No longer needed. UMD QSFs have been modified so that question names are unique per wave. To accomplish this, some items that had display logic set to FALSE (not shown) were instead moved to the trash.
1 parent 336be6f commit 2bc9462

File tree

3 files changed

+2
-36
lines changed

3 files changed

+2
-36
lines changed

facebook/qsf-tools/generate-codebook.R

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,6 @@ process_qsf <- function(path_to_qsf,
4141
item_names <- displayed_questions %>%
4242
map_chr(~ .x$Payload$DataExportTag) %>%
4343
patch_item_names(path_to_rename_map, wave)
44-
45-
if (survey_version == "UMD") {
46-
item_names[item_names == "D2_30" & qids == "QID294"] <- "D2_30_cheer"
47-
item_names[item_names == "D2_30" & qids == "QID293"] <- "D2_30_calm"
48-
item_names[item_names == "B13" & qids == "QID253"] <- "B13_likert"
49-
item_names[item_names == "B13" & qids == "QID255"] <- "B13_profile"
50-
item_names[item_names == "B14" & qids == "QID254"] <- "B14_likert"
51-
item_names[item_names == "B14" & qids == "QID259"] <- "B14_profile"
52-
item_names[item_names == "B12a" & qids == "QID250"] <- "B12a_likert"
53-
item_names[item_names == "B12a" & qids == "QID258"] <- "B12a_profile"
54-
item_names[item_names == "B12b" & qids == "QID251"] <- "B12b_likert"
55-
item_names[item_names == "B12b" & qids == "QID257"] <- "B12b_profile"
56-
}
5744

5845
# get question text:
5946
questions <- displayed_questions %>%

facebook/qsf-tools/qsf-differ.R

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -155,21 +155,7 @@ get_qsf_file <- function(path, survey_version,
155155

156156

157157
# Deduplicate some UMD items.
158-
if (survey_version == "UMD") {
159-
question$DataExportTag <- case_when(
160-
question$DataExportTag == "D2_30" & question$QuestionID == "QID294" ~ "D2_30_cheer",
161-
question$DataExportTag == "D2_30" & question$QuestionID == "QID293" ~ "D2_30_calm",
162-
question$DataExportTag == "B13" & question$QuestionID == "QID253" ~ "B13_likert",
163-
question$DataExportTag == "B13" & question$QuestionID == "QID255" ~ "B13_profile",
164-
question$DataExportTag == "B14" & question$QuestionID == "QID254" ~ "B14_likert",
165-
question$DataExportTag == "B14" & question$QuestionID == "QID259" ~ "B14_profile",
166-
question$DataExportTag == "B12a" & question$QuestionID == "QID250" ~ "B12a_likert",
167-
question$DataExportTag == "B12a" & question$QuestionID == "QID258" ~ "B12a_profile",
168-
question$DataExportTag == "B12b" & question$QuestionID == "QID251" ~ "B12b_likert",
169-
question$DataExportTag == "B12b" & question$QuestionID == "QID257" ~ "B12b_profile",
170-
TRUE ~ question$DataExportTag
171-
)
172-
} else if (survey_version == "CMU") {
158+
if (survey_version == "CMU") {
173159
if (wave == 10) {
174160
question$DataExportTag <- case_when(
175161
question$DataExportTag == "C6" ~ "C6a",

facebook/qsf-tools/static/UMD/item_shortquestion_map.csv

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,12 @@ B11a,wanted test 24h
1919
B11b,wanted to test sympdays
2020
B11c,wanted test 14d
2121
B12,reason not tested 14d
22-
B12a_likert,reason not tested 14d
23-
B12a_profile,reason not tested 14d
22+
B12a,reason not tested 14d
2423
B12b,reason not tested 14d
25-
B12b_likert,reason not tested 14d
26-
B12b_profile,reason not tested 14d
2724
B12c,reason not tested 14d
2825
B12c_matrix,reason not tested 14d matrix
2926
B13,needed med services 30d
30-
B13_likert,needed med services 30d
31-
B13_profile,needed med services 30d
3227
B14,reason no med services 30d
33-
B14_likert,reason no med services 30d
34-
B14_profile,reason no med services 30d
3528
B15,reason tested 14d
3629
B1_matrix,symptoms
3730
B1b,unusual symptoms

0 commit comments

Comments
 (0)