A simulated dataset with cognition test scores, following the same methodology as the Health and Retirement Study (HRS). The dataset includes immediate word recall, delayed word recall, serial subtraction, backwards counting tasks, and mouse click clicking with scores representing cognitive performance on these tests.
Format
A dataframe with 10 rows and 35 variables:
- HHID
Household identifier, a unique 6-digit integer.
- PN
Person number, a unique 1- or 2-digit integer within each household.
- SD182M1
Immediate word recall test score for the first word.
- SD182M2
Immediate word recall test score for the second word.
- SD182M3
Immediate word recall test score for the third word.
- SD182M4
Immediate word recall test score for the fourth word.
- SD182M5
Immediate word recall test score for the fifth word.
- SD182M6
Immediate word recall test score for the sixth word.
- SD182M7
Immediate word recall test score for the seventh word.
- SD182M8
Immediate word recall test score for the eight word.
- SD182M9
Immediate word recall test score for the ninth word.
- SD182M10
Immediate word recall test score for the tenth word.
- SD183M1
Delayed word recall test score for the first word.
- SD183M2
Delayed word recall test score for the second word.
- SD183M3
Delayed word recall test score for the third word.
- SD183M4
Delayed word recall test score for the fourth word.
- SD183M5
Delayed word recall test score for the fifth word.
- SD183M6
Delayed word recall test score for the sixth word.
- SD183M7
Delayed word recall test score for the seventh word.
- SD183M8
Delayed word recall test score for the eight word.
- SD183M9
Delayed word recall test score for the ninth word.
- SD183M10
Delayed word recall test score for the tenth word.
- SD142
Serial subtraction, result of subtracting 7 from 100.
- SD143
Serial subtraction, result of subtracting 7 from the previous number.
- SD144
Serial subtraction, result of subtracting 7 from the previous number.
- SD145
Serial subtraction, result of subtracting 7 from the previous number.
- SD146
Serial subtraction, result of subtracting 7 from the previous number.
- SD124
Backwards counting test, success on the first attempt (1 = success, 0 = fail).
- SD129
Backwards counting test, success on the second attempt (1 = success, 0 = fail).
- SD237WA
Mouse clicking test: accuracy result (first attemp)
- SD237WC
Mouse clicking test: total click count (first attemp)
- SD237WT
Mouse clicking test: total time spent (in seconds; first attempt)
- SD238WA
Mouse clicking test: accuracy result (second attemp)
- SD238WC
Mouse clicking test: total click count (second attemp)
- SD238WT
Mouse clicking test: total time spent (in seconds; second attempt)
Examples
# Load the data
data(cog_data)
# View the first few rows
head(cog_data)
#> HHID PN SD182M1 SD182M2 SD182M3 SD182M4 SD182M5 SD182M6 SD182M7 SD182M8
#> 1 288941 93 17 9 32 33 99 39 5 23
#> 2 234057 99 53 51 38 67 31 31 64 35
#> 3 224021 72 39 10 25 27 16 58 61 40
#> 4 785284 26 63 23 34 25 62 17 25 58
#> 5 326317 7 12 27 29 38 30 64 62 30
#> 6 465208 42 15 99 5 21 6 60 22 12
#> SD182M9 SD182M10 SD183M1 SD183M2 SD183M3 SD183M4 SD183M5 SD183M6 SD183M7
#> 1 35 21 22 61 23 16 19 19 62
#> 2 14 37 12 30 26 24 25 66 25
#> 3 29 8 20 15 38 32 39 62 16
#> 4 32 61 56 24 56 21 64 57 24
#> 5 7 10 17 59 32 65 26 39 64
#> 6 3 60 56 23 7 11 9 4 11
#> SD183M8 SD183M9 SD183M10 SD142 SD143 SD144 SD145 SD146 SD124 SD129 SD237WA
#> 1 29 67 6 96 86 89 69 69 0 0 -8
#> 2 36 65 67 90 86 76 76 52 0 1 -8
#> 3 62 8 8 97 89 89 76 63 0 0 -9
#> 4 54 56 54 97 90 78 66 50 0 0 1
#> 5 22 21 32 99 80 78 68 51 1 0 0
#> 6 59 55 96 98 98 74 79 53 1 1 0
#> SD237WC SD237WT SD238WA SD238WC SD238WT
#> 1 13 42 -8 9 37
#> 2 17 42 0 7 43
#> 3 3 38 -8 9 33
#> 4 18 60 -8 4 19
#> 5 2 48 -8 2 12
#> 6 5 16 -9 12 34