Platform
Resources
Pricing
Sign in
Get started
Jason Chow
Workspace
Fork
Public
By
Jason Chow
Edited
Paused
2 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
rawData
=
s1DataFile
.
csv
(
{
typed
:
true
}
)
Insert cell
sbjID
=
demo
.
filter
(
x
=>
x
.
Email
==
email
)
[
0
]
.
SbjID
Insert cell
demo
=
rawData
.
filter
(
(
x
)
=>
x
.
trial_type
==
"survey-html-form"
)
.
map
(
(
x
)
=>
{
const
r
=
JSON
.
parse
(
x
.
response
)
;
return
{
SbjID
:
x
.
SbjID
,
Email
:
r
.
Email
,
Age
:
r
.
Age
,
Gender
:
r
.
Gender
,
Handedness
:
r
.
Handedness
,
Birder
:
r
.
Birder
,
Braille
:
r
.
Braille
,
RT
:
x
.
rt
}
;
}
)
Insert cell
ziggData
=
rawData
.
filter
(
(
x
)
=>
(
x
.
Task
==
"vMatch-Ziggerins"
)
&
x
.
testTrial
)
.
filter
(
(
x
)
=>
x
.
SbjID
==
sbjID
)
Insert cell
ziggSummary
=
{
const
corrData
=
ziggData
.
map
(
(
x
)
=>
x
.
Corr
)
;
return
{
Acc
:
d3
.
sum
(
corrData
)
/
corrData
.
length
,
MeanRT
:
d3
.
mean
(
ziggData
.
map
(
(
x
)
=>
x
.
rt
)
)
}
;
}
Insert cell
greebleData
=
rawData
.
filter
(
(
x
)
=>
(
x
.
Task
==
"vNOMT-GreeblesAsym"
)
&
x
.
TestTrial
)
.
filter
(
(
x
)
=>
x
.
SbjID
==
sbjID
)
Insert cell
greebleSummary
=
{
const
corrData
=
greebleData
.
map
(
(
x
)
=>
x
.
Correct
)
;
return
{
Acc
:
d3
.
sum
(
corrData
)
/
corrData
.
length
,
MeanRT
:
d3
.
mean
(
greebleData
.
map
(
(
x
)
=>
x
.
rt
)
)
}
;
}
Insert cell
oddballData
=
rawData
.
filter
(
(
x
)
=>
(
x
.
Task
==
"vOddball-Many"
)
&
x
.
TestTrial
)
.
filter
(
(
x
)
=>
x
.
SbjID
==
sbjID
)
Insert cell
oddballSummary
=
{
const
corrData
=
oddballData
.
map
(
(
x
)
=>
x
.
Correct
)
;
return
{
Acc
:
d3
.
sum
(
corrData
)
/
corrData
.
length
,
MeanRT
:
d3
.
mean
(
oddballData
.
map
(
(
x
)
=>
x
.
rt
)
)
}
;
}
Insert cell
matVSData
=
rawData
.
filter
(
(
x
)
=>
(
x
.
Task
==
"Matrice_VS"
)
&
x
.
testTrial
)
.
filter
(
(
x
)
=>
x
.
SbjID
==
sbjID
)
Insert cell
matVSSummary
=
{
const
corrData
=
matVSData
.
map
(
(
x
)
=>
x
.
Corr
)
;
return
{
Acc
:
d3
.
sum
(
corrData
)
/
corrData
.
length
,
MeanRT
:
d3
.
mean
(
matVSData
.
map
(
(
x
)
=>
x
.
rt
)
)
}
;
}
Insert cell
matSemData
=
rawData
.
filter
(
(
x
)
=>
(
x
.
Task
==
"Matrice_Sem"
)
&
x
.
testTrial
)
.
filter
(
(
x
)
=>
x
.
SbjID
==
sbjID
)
Insert cell
matSemSummary
=
{
const
corrData
=
matSemData
.
map
(
(
x
)
=>
x
.
Corr
)
;
return
{
Acc
:
d3
.
sum
(
corrData
)
/
corrData
.
length
,
MeanRT
:
d3
.
mean
(
matSemData
.
map
(
(
x
)
=>
x
.
rt
)
)
}
;
}
Insert cell
letterData
=
rawData
.
filter
(
(
x
)
=>
(
x
.
Task
==
"Letters"
)
&
x
.
TestTrial
)
.
filter
(
(
x
)
=>
x
.
SbjID
==
sbjID
)
Insert cell
letterSummary
=
{
const
corrData
=
letterData
.
map
(
(
x
)
=>
x
.
Correct
)
;
return
{
Acc
:
d3
.
sum
(
corrData
)
/
corrData
.
length
,
MeanRT
:
d3
.
mean
(
letterData
.
map
(
(
x
)
=>
x
.
rt
)
)
}
;
}
Insert cell
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more