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
500 changes: 250 additions & 250 deletions data/main/data_to_analyze/level-participant_source-cdi_data.csv

Large diffs are not rendered by default.

6,112 changes: 6,112 additions & 0 deletions data/main/data_to_analyze/level-participant_source-cdi_data_with_percentile.csv

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Percentile_Rank,Age_8_months,Age_9_months,Age_10_months,Age_11_months,Age_12_months,Age_13_months,Age_14_months,Age_15_months,Age_16_months,Age_17_months,Age_18_months
99,24,29,33,38,44,50,56,63,69,75,79
95,14,17,20,24,29,35,41,47,54,61,68
90,9,12,14,18,22,27,32,38,45,53,60
85,7,9,11,14,17,22,27,33,39,46,54
80,5,7,9,11,14,18,23,28,34,41,48
75,4,5,7,9,12,15,19,24,30,36,44
70,3,4,5,7,10,13,16,21,26,33,39
65,2,3,4,6,8,11,14,18,23,29,36
60,2,2,3,5,7,9,12,16,20,26,32
55,1,2,3,4,5,8,10,14,18,23,29
50,1,1,2,3,4,6,9,12,15,20,25
45,1,1,2,2,4,5,7,10,13,17,22
40,0,1,1,2,3,4,6,8,11,15,20
35,0,0,1,1,2,3,5,7,9,13,17
30,0,0,1,1,2,2,4,5,8,11,14
25,0,0,0,1,1,2,3,4,6,9,12
20,0,0,0,0,1,1,2,3,5,7,9
15,0,0,0,0,0,1,1,2,3,5,7
10,0,0,0,0,0,0,1,1,2,3,4
5,0,0,0,0,0,0,0,0,1,1,2
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Percentile_Rank,Age_8_months,Age_9_months,Age_10_months,Age_11_months,Age_12_months,Age_13_months,Age_14_months,Age_15_months,Age_16_months,Age_17_months,Age_18_months
99,7,10,15,21,29,39,51,63,75,84,88
95,4,6,9,13,19,27,36,48,61,73,83
90,3,5,7,10,15,21,29,39,51,65,77
85,3,4,6,8,12,17,24,33,44,57,71
80,2,3,5,7,10,14,20,28,39,51,65
75,2,3,4,6,8,12,17,24,34,46,59
70,2,2,3,5,7,10,15,21,30,41,54
65,1,2,3,4,6,9,13,18,26,36,48
60,1,2,2,4,5,8,11,16,23,32,43
55,1,1,2,3,4,6,9,14,20,28,38
50,1,1,2,3,4,5,8,12,17,24,33
45,1,1,1,2,3,5,7,10,14,20,29
40,1,1,1,2,3,4,6,8,12,17,24
35,0,1,1,1,2,3,5,7,10,14,20
30,0,1,1,1,2,2,4,5,8,11,16
25,0,0,1,1,1,2,3,4,6,9,12
20,0,0,0,1,1,1,2,3,4,6,9
15,0,0,0,0,1,1,1,2,3,4,6
10,0,0,0,0,0,1,1,1,2,2,3
5,0,0,0,0,0,0,0,0,1,1,1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Percentile_Rank,Age_16_months,Age_17_months,Age_18_months,Age_19_months,Age_20_months,Age_21_months,Age_22_months,Age_23_months,Age_24_months,Age_25_months,Age_26_months,Age_27_months,Age_28_months,Age_29_months,Age_30_months
99,67,74,80,86,90,94,97,98,99,100,100,100,100,100,100
95,52,59,66,72,79,85,90,93,96,98,99,100,100,100,100
90,44,50,57,63,70,77,83,88,92,95,97,98,99,100,100
85,38,44,50,57,64,70,77,83,88,92,95,97,98,99,100
80,33,39,45,51,58,65,72,78,83,88,92,95,97,98,99
75,30,35,40,46,53,60,66,73,79,84,89,92,95,97,99
70,27,31,36,42,48,55,62,68,75,80,85,90,93,96,98
65,24,28,33,38,44,50,57,64,70,76,82,86,90,94,96
60,21,25,30,35,40,46,52,59,65,72,77,83,87,91,94
55,19,23,27,31,36,42,48,54,61,67,73,79,84,88,92
50,17,20,24,28,33,38,44,50,56,62,68,74,80,84,89
45,15,18,21,25,29,34,40,45,51,57,63,69,75,80,85
40,13,16,19,22,26,30,35,41,46,52,58,64,70,75,81
35,11,13,16,19,23,27,31,36,41,47,52,58,64,70,75
30,9,11,14,16,20,23,27,31,36,41,46,52,58,64,69
25,8,9,11,14,16,19,23,27,31,35,40,45,51,56,62
20,6,8,9,11,13,16,19,22,25,29,34,38,43,48,54
15,5,6,7,9,10,12,14,17,20,23,27,30,35,39,44
10,3,4,5,6,7,8,10,12,14,16,19,22,25,29,32
5,2,2,3,3,4,5,5,6,8,9,10,12,14,16,19
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Percentile_Rank,Age_16_months,Age_17_months,Age_18_months,Age_19_months,Age_20_months,Age_21_months,Age_22_months,Age_23_months,Age_24_months,Age_25_months,Age_26_months,Age_27_months,Age_28_months,Age_29_months,Age_30_months
99,66,72,78,83,87,91,95,97,98,99,100,100,100,100,100
95,54,60,66,72,78,83,88,92,95,97,99,99,100,100,100
90,47,53,59,65,71,77,82,87,91,95,97,99,99,100,100
85,42,48,54,60,66,72,78,83,88,92,95,97,99,100,100
80,39,44,50,56,62,68,74,80,85,90,93,96,98,99,100
75,36,41,46,52,58,65,71,77,82,87,91,94,97,98,99
70,33,38,43,49,55,61,67,73,79,84,89,93,95,98,99
65,30,35,40,46,52,58,64,70,76,81,86,90,94,96,98
60,28,33,38,43,49,55,61,67,73,79,84,88,92,95,97
55,26,30,35,40,46,52,58,64,70,76,81,86,90,93,96
50,24,28,33,38,43,49,55,61,67,73,78,83,88,91,95
45,22,26,30,35,40,46,52,57,63,69,75,80,85,89,93
40,20,24,28,33,38,43,48,54,60,66,71,77,82,86,90
35,18,22,26,30,35,40,45,51,56,62,68,73,78,83,88
30,16,20,23,27,32,37,42,47,52,58,64,69,74,79,84
25,15,18,21,25,29,33,38,43,48,54,59,64,70,75,80
20,13,15,18,22,26,30,34,39,44,49,54,59,64,69,74
15,11,13,16,19,22,26,30,34,38,43,48,53,57,62,67
10,8,10,13,15,18,21,25,28,32,36,40,45,49,53,58
5,6,7,9,11,13,15,18,21,24,27,30,34,37,40,44
125 changes: 125 additions & 0 deletions data/metadata/level-survey_added-mapping.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
question_group,label_code,response_label
Q1,1,sock
Q1,103,bathtub
Q1,126,shower
Q1,127,balloon
Q1,128,dresser
Q1,129,kite
Q1,130,camel
Q1,131,elephant
Q1,132,ladybug
Q1,133,cloud
Q1,134,tree
Q1,135,zipper
Q1,136,crow
Q1,137,penguin
Q1,138,seahorse
Q1,139,duck
Q1,140,chicken
Q1,141,butterfly
Q1,142,lizard
Q1,143,walrus
Q1,144,snake
Q1,145,truck
Q1,146,car
Q1,147,airplane
Q2,1,baa baa
Q2,2,meow
Q2,3,ouch
Q2,4,uh oh
Q2,5,woof woof
Q2,6,bear
Q2,7,bird
Q2,8,cat
Q2,9,dog
Q2,10,duck
Q2,11,horse
Q2,12,airplane
Q2,13,boat
Q2,14,car
Q2,15,ball
Q2,16,book
Q2,17,game
Q2,18,applesauce
Q2,19,candy
Q2,20,coke
Q2,21,cracker
Q2,22,juice
Q2,23,meat
Q2,24,milk
Q2,25,peas
Q2,26,hat
Q2,27,necklace
Q2,28,shoe
Q2,29,sock
Q2,30,chin
Q2,31,ear
Q2,32,hand
Q2,33,leg
Q2,34,broom
Q2,35,comb
Q2,36,mop
Q2,37,plate
Q2,38,trash
Q2,39,tray
Q2,40,towel
Q2,41,bed
Q2,42,bedroom
Q2,43,bench
Q2,44,oven
Q2,45,stairs
Q2,46,flag
Q2,47,rain
Q2,48,star
Q2,49,swing
Q2,50,school
Q2,51,sky
Q2,52,party
Q2,53,friend
Q2,54,mommy
Q2,55,person
Q2,56,bye
Q2,57,hi
Q2,58,no
Q2,59,shopping
Q2,60,thank you
Q2,61,carry
Q2,62,chase
Q2,63,dump
Q2,64,finish
Q2,65,fit
Q2,66,hug
Q2,67,listen
Q2,68,like
Q2,69,pretend
Q2,70,rip
Q2,71,shake
Q2,72,taste
Q2,73,gentle
Q2,74,think
Q2,75,wish
Q2,76,all gone
Q2,77,cold
Q2,78,fast
Q2,79,happy
Q2,80,hot
Q2,81,last
Q2,82,tiny
Q2,83,wet
Q2,84,after
Q2,85,day
Q2,86,tonight
Q2,87,our
Q2,88,them
Q2,89,this
Q2,90,us
Q2,91,where
Q2,92,beside
Q2,93,down
Q2,94,under
Q2,95,all
Q2,96,much
Q2,97,could
Q2,98,need
Q2,99,would
Q2,100,if
132 changes: 2 additions & 130 deletions preprocessing/cdi_preprocessing/CDI_processing.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -141,136 +141,8 @@ cdi2a_long <- cdi2a_cleaned |>
```

```{r}
# make a mapping table
# TODO: make CSV instead
words2a <- tibble::tribble(
~question_group, ~label_code, ~response_label,
"Q1", 1, "sock",
"Q1", 103, "bathtub",
"Q1", 126, "shower",
"Q1", 127, "balloon",
"Q1", 128, "dresser",
"Q1", 129, "kite",
"Q1", 130, "camel",
"Q1", 131, "elephant",
"Q1", 132, "ladybug",
"Q1", 133, "cloud",
"Q1", 134, "tree",
"Q1", 135, "zipper",
"Q1", 136, "crow",
"Q1", 137, "penguin",
"Q1", 138, "seahorse",
"Q1", 139, "duck",
"Q1", 140, "chicken",
"Q1", 141, "butterfly",
"Q1", 142, "lizard",
"Q1", 143, "walrus",
"Q1", 144, "snake",
"Q1", 145, "truck",
"Q1", 146, "car",
"Q1", 147, "airplane",

"Q2", 1, "baa baa",
"Q2", 2, "meow",
"Q2", 3, "ouch",
"Q2", 4, "uh oh",
"Q2", 5, "woof woof",
"Q2", 6, "bear",
"Q2", 7, "bird",
"Q2", 8, "cat",
"Q2", 9, "dog",
"Q2", 10, "duck",
"Q2", 11, "horse",
"Q2", 12, "airplane",
"Q2", 13, "boat",
"Q2", 14, "car",
"Q2", 15, "ball",
"Q2", 16, "book",
"Q2", 17, "game",
"Q2", 18, "applesauce",
"Q2", 19, "candy",
"Q2", 20, "coke",
"Q2", 21, "cracker",
"Q2", 22, "juice",
"Q2", 23, "meat",
"Q2", 24, "milk",
"Q2", 25, "peas",
"Q2", 26, "hat",
"Q2", 27, "necklace",
"Q2", 28, "shoe",
"Q2", 29, "sock",
"Q2", 30, "chin",
"Q2", 31, "ear",
"Q2", 32, "hand",
"Q2", 33, "leg",
"Q2", 34, "broom",
"Q2", 35, "comb",
"Q2", 36, "mop",
"Q2", 37, "plate",
"Q2", 38, "trash",
"Q2", 39, "tray",
"Q2", 40, "towel",
"Q2", 41, "bed",
"Q2", 42, "bedroom",
"Q2", 43, "bench",
"Q2", 44, "oven",
"Q2", 45, "stairs",
"Q2", 46, "flag",
"Q2", 47, "rain",
"Q2", 48, "star",
"Q2", 49, "swing",
"Q2", 50, "school",
"Q2", 51, "sky",
"Q2", 52, "party",
"Q2", 53, "friend",
"Q2", 54, "mommy",
"Q2", 55, "person",
"Q2", 56, "bye",
"Q2", 57, "hi",
"Q2", 58, "no",
"Q2", 59, "shopping",
"Q2", 60, "thank you",
"Q2", 61, "carry",
"Q2", 62, "chase",
"Q2", 63, "dump",
"Q2", 64, "finish",
"Q2", 65, "fit",
"Q2", 66, "hug",
"Q2", 67, "listen",
"Q2", 68, "like",
"Q2", 69, "pretend",
"Q2", 70, "rip",
"Q2", 71, "shake",
"Q2", 72, "taste",
"Q2", 73, "gentle",
"Q2", 74, "think",
"Q2", 75, "wish",
"Q2", 76, "all gone",
"Q2", 77, "cold",
"Q2", 78, "fast",
"Q2", 79, "happy",
"Q2", 80, "hot",
"Q2", 81, "last",
"Q2", 82, "tiny",
"Q2", 83, "wet",
"Q2", 84, "after",
"Q2", 85, "day",
"Q2", 86, "tonight",
"Q2", 87, "our",
"Q2", 88, "them",
"Q2", 89, "this",
"Q2", 90, "us",
"Q2", 91, "where",
"Q2", 92, "beside",
"Q2", 93, "down",
"Q2", 94, "under",
"Q2", 95, "all",
"Q2", 96, "much",
"Q2", 97, "could",
"Q2", 98, "need",
"Q2", 99, "would",
"Q2", 100, "if",
)
# get mapping table
words2a <- read_csv(here("data/metadata/level-survey_added-mapping.csv"), show_col_types = FALSE)
```

```{r}
Expand Down
Loading