Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AIAT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bonte Bruno
AIAT
Commits
19411811
Commit
19411811
authored
Jan 25, 2019
by
Bonte Bruno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first script
parent
87e5af9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
0 deletions
+66
-0
iat-analysis.R
iat-analysis.R
+65
-0
input.txt
input.txt
+1
-0
No files found.
iat-analysis.R
View file @
19411811
#load basic libraries for graphs
library
(
dplyr
)
library
(
tidyr
)
library
(
ggplot2
)
library
(
stringr
)
#set working directory where this source file is
setwd
(
"/home/bonte/git/aiat"
)
#read datas from IAT-master
data
<-
read.table
(
"data/Cooperation-bru-2019-01-24-17-15.txt"
,
sep
=
","
,
dec
=
"."
)
%>%
tbl_df
()
colnames
(
data
)
<-
c
(
"trial"
,
"round"
,
"category"
,
"item"
,
"error"
,
"reactionTime"
)
items
<-
list
(
c
(
"compétition"
,
"gain"
,
"profit"
,
"winner"
,
"performance"
),
c
(
"coopération"
,
"équité"
,
"égalité"
,
"gentillesse"
,
"solidarité"
),
c
(
"je"
,
"soi"
,
"mon"
),
c
(
"autre"
,
"eux"
,
"pas moi"
))
data
%>%
mutate
(
category
=
recode_factor
(
category
,
"A"
=
"Appropriation"
,
"P"
=
"Partage"
,
"1"
=
"Moi"
,
"2"
=
"PasMoi"
))
%>%
ggplot
()
+
geom_density
(
aes
(
x
=
reactionTime
,
color
=
category
))
+
facet_wrap
(
~
trial
)
+
ggsave
(
"all-reaction-times.pdf"
)
data
%>%
mutate
(
category
=
recode_factor
(
category
,
"A"
=
"Appropriation"
,
"P"
=
"Partage"
,
"1"
=
"Moi"
,
"2"
=
"PasMoi"
))
%>%
mutate
(
trial
=
as.factor
(
trial
))
%>%
ggplot
()
+
geom_density
(
aes
(
x
=
reactionTime
,
color
=
trial
),
size
=
1.5
)
+
ggsave
(
"per-trial-reaction-times.pdf"
)
input.txt
0 → 100755
View file @
19411811
{"name":"Cooperation","showResult":"show","IATtype":"two","catA":{"label":"Appropriation","datalabel":"A","itemtype":"txt","items":["comp\u00e9tition","gain","profit","winner","performance"]},"catB":{"label":"Partage","datalabel":"P","itemtype":"txt","items":["coop\u00e9ration","\u00e9quit\u00e9","\u00e9galit\u00e9","gentillesse","solidarit\u00e9"]},"cat1":{"label":"Moi","datalabel":"1","itemtype":"txt","items":["je","soi","mon"]},"cat2":{"label":"Pas moi","datalabel":"2","itemtype":"txt","items":["autre","eux","pas moi"]}}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment