Skip to content

Commit

Permalink
Merge pull request #8 from martscht/chapter_4.1
Browse files Browse the repository at this point in the history
Chapter 4.1
  • Loading branch information
jona-sassenhagen committed Apr 11, 2019
2 parents db34d2b + 9586347 commit 256505f
Show file tree
Hide file tree
Showing 17 changed files with 4,082 additions and 0 deletions.
1,196 changes: 1,196 additions & 0 deletions docs/chapter_ana/Introduction to Programming with R.Rrst

Large diffs are not rendered by default.

2,537 changes: 2,537 additions & 0 deletions docs/chapter_ana/Introduction to Programming with R.rst

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions docs/chapter_ana/data/0_recognized.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
text,is_lure,key,yes_key,rt,subject
Bier,neutral,l,a,2.1808581352200003,0
Dinosaurier,neutral,l,a,0.9811301231380001,0
Volkswagen,correct,a,a,1.0397160053299999,0
Sibirien,neutral,l,a,2.89859485626,0
Fortbewegungsmittel,correct,a,a,2.87047886848,0
Bus,correct,a,a,1.13571500778,0
Lexikon,neutral,l,a,0.850701093674,0
Jeep,correct,a,a,0.929927825928,0
Fenster,neutral,l,a,0.985253810883,0
Eisen,neutral,l,a,1.14007902145,0
Frucht,lure,l,a,1.1348760128,0
Landstrasse,correct,a,a,1.79826402664,0
Rennen,correct,a,a,1.19159293175,0
Pasta,neutral,l,a,0.963559865952,0
Fuss,lure,l,a,1.06597208977,0
Achtung,neutral,l,a,3.96294808388,0
beobachten,neutral,l,a,1.6566650867500001,0
Garage,correct,a,a,0.937987804413,0
Zug,correct,a,a,2.6815969944,0
Lastwagen,correct,a,a,0.8742349147799998,0
Chip,neutral,l,a,0.973922967911,0
Schloss,correct,a,a,0.785863161087,0
Fliege,neutral,l,a,1.0982868671400001,0
fahren,correct,l,a,1.9936940669999998,0
Auto,lure,l,a,2.25292301178,0
Wagen,correct,a,a,1.2001371383700001,0
Pastrami,neutral,l,a,1.26868891716,0
28 changes: 28 additions & 0 deletions docs/chapter_ana/data/1_recognized.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
text,is_lure,key,yes_key,rt,subject
Bier,neutral,l,a,1.8518933019659016,1
Dinosaurier,neutral,l,a,1.0229007570887916,1
Saft,correct,a,a,0.9125279018189758,1
Eisen,neutral,l,a,0.7826996051880997,1
Fenster,neutral,l,a,1.6418251141149085,1
Kiwi,correct,a,a,0.6517324493906926,1
beobachten,neutral,l,a,1.4945399218704551,1
Fuss,lure,a,a,0.7873268874827772,1
Zitrone,correct,a,a,1.3160629632184282,1
Pasta,neutral,l,a,0.913775556080509,1
Orange,correct,a,a,0.6256844341987744,1
Kirsche,correct,a,a,0.7312801572843455,1
Apfel,correct,a,a,1.1881235961918721,1
Obstkor,correct,a,a,0.6523942521598656,1
Pastrami,neutral,l,a,0.8268051471386569,1
Auto,lure,a,a,0.8257151431462262,1
Chip,neutral,l,a,0.7817709464579821,1
Beere,correct,a,a,0.6129693637194578,1
Tomate,correct,a,a,0.5743446325650439,1
Sibirien,neutral,l,a,0.6609796241100412,1
Fliege,neutral,l,a,0.9663683490944096,1
Achtung,neutral,l,a,0.7818957529379986,1
Frucht,lure,a,a,0.6851625214621889,1
reif,correct,a,a,0.9338648830307648,1
Lexikon,neutral,l,a,0.7671263020893093,1
Banane,correct,a,a,0.6203333564626519,1
Pfirsich,correct,a,a,0.6352259715786204,1
28 changes: 28 additions & 0 deletions docs/chapter_ana/data/2_recognized.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
text,is_lure,key,yes_key,rt,subject
reif,correct,a,a,2.069518543081358,2
beobachten,neutral,l,a,1.3078252305276692,2
Pfirsich,correct,a,a,0.8181256566895172,2
Kiwi,correct,a,a,0.5583718962152489,2
Dinosaurier,neutral,l,a,1.0078030972508714,2
Kirsche,correct,a,a,0.7532346609223168,2
Lexikon,neutral,l,a,0.8615789127361495,2
Saft,correct,a,a,0.6634028206171934,2
Fenster,neutral,l,a,0.827948305872269,2
Beere,correct,a,a,0.6203508971375413,2
Banane,correct,a,a,0.6549486134317704,2
Achtung,neutral,l,a,0.6784272383374628,2
Zitrone,correct,a,a,0.6112002467561979,2
Eisen,neutral,l,a,0.6657903719169553,2
Pastrami,neutral,l,a,0.8078572304511908,2
Auto,lure,a,a,1.025555510132108,2
Sibirien,neutral,l,a,0.8927286351390649,2
Obstkor,correct,a,a,0.7541133260237984,2
Fuss,lure,a,a,1.3660024604178034,2
Orange,correct,a,a,0.846149162389338,2
Frucht,lure,a,a,1.1068935877410695,2
Bier,neutral,l,a,1.0567336769308897,2
Chip,neutral,l,a,0.7717070725338999,2
Pasta,neutral,l,a,0.657307275920175,2
Fliege,neutral,l,a,0.707170742796734,2
Tomate,correct,l,a,0.9558734117890708,2
Apfel,correct,a,a,0.9327312307141256,2
28 changes: 28 additions & 0 deletions docs/chapter_ana/data/3_recognized.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
text,is_lure,key,yes_key,rt,subject
Obstkor,correct,a,a,3.5554412290471182,3
Saft,correct,a,a,5.801247641481041,3
Pfirsich,correct,a,a,1.2507300075437795,3
Dinosaurier,neutral,l,a,1.0869046824830093,3
reif,correct,a,a,2.9145360881175293,3
Pastrami,neutral,l,a,1.178281783767261,3
Kirsche,correct,a,a,9.14075888282764,3
Sibirien,neutral,l,a,1.0850914241432292,3
Banane,correct,a,a,0.9160585408744736,3
Lexikon,neutral,l,a,1.0171245999283656,3
Auto,lure,l,a,4.838723500341303,3
Apfel,correct,a,a,0.8221373183962442,3
Fenster,neutral,l,a,1.0723271973354258,3
Orange,correct,a,a,0.8578157421616197,3
Bier,neutral,l,a,0.8394945627910602,3
Beere,correct,a,a,1.9493467993424929,3
Fuss,lure,a,a,1.5685394546196676,3
Frucht,lure,a,a,1.7997482821087942,3
Kiwi,correct,a,a,1.148106000345706,3
beobachten,neutral,l,a,0.9864946466113906,3
Chip,neutral,l,a,1.257823525487538,3
Fliege,neutral,l,a,0.9630997651318012,3
Tomate,correct,a,a,0.8835798338302538,3
Pasta,neutral,l,a,1.0330722925573357,3
Zitrone,correct,a,a,0.6967333979948762,3
Eisen,neutral,l,a,1.6483228215668078,3
Achtung,neutral,l,a,0.7870824160129359,3
28 changes: 28 additions & 0 deletions docs/chapter_ana/data/4_recognized.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
text,is_lure,key,yes_key,rt,subject
Kiwi,correct,a,a,1.7584849965314788,4
beobachten,neutral,l,a,1.1271158606923564,4
Obstkor,correct,a,a,0.856930252035454,4
Pfirsich,correct,a,a,0.7115281820533709,4
Chip,neutral,l,a,0.7869856349316251,4
Apfel,correct,a,a,0.5991965579669339,4
Fliege,neutral,l,a,0.7796228707957198,4
Pasta,neutral,l,a,0.6842813566145196,4
reif,correct,l,a,0.7114033755242417,4
Auto,lure,a,a,1.2568850917778036,4
Zitrone,correct,a,a,2.1438530731556966,4
Dinosaurier,neutral,l,a,0.6873284423400037,4
Eisen,neutral,l,a,0.6197206632805319,4
Tomate,correct,a,a,0.8497501816673321,4
Orange,correct,a,a,0.8602565102610242,4
Frucht,lure,a,a,1.6815208332463951,4
Saft,correct,a,a,0.7098375462392141,4
Achtung,neutral,l,a,0.628043698707188,4
Fenster,neutral,l,a,0.9428033024469188,4
Kirsche,correct,a,a,0.7776592206992063,4
Bier,neutral,l,a,0.599906805651699,4
Fuss,lure,a,a,0.7919602425517951,4
Beere,correct,a,a,0.8900803442029428,4
Pastrami,neutral,l,a,0.5841885728132183,4
Banane,correct,a,a,0.6085110663152591,4
Lexikon,neutral,l,a,0.5833145165579481,4
Sibirien,neutral,l,a,0.6590182981162798,4
28 changes: 28 additions & 0 deletions docs/chapter_ana/data/5_recognized.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
text,is_lure,key,yes_key,rt,subject
Lexikon,neutral,l,a,1.7181386023876255,5
Saft,correct,a,a,1.2733390222419985,5
Bier,neutral,l,a,1.1733416653005406,5
Fliege,neutral,l,a,1.3306251982576214,5
Sibirien,neutral,l,a,1.1248093217145652,5
Fuss,lure,l,a,2.826676836179104,5
Auto,lure,l,a,1.133687378198374,5
Apfel,correct,a,a,0.9670704263844528,5
Pastrami,neutral,l,a,0.9824489132734016,5
Kiwi,correct,a,a,0.846230611205101,5
Obstkor,correct,a,a,0.7766005648300052,5
Fenster,neutral,l,a,0.9111307033454068,5
Chip,neutral,l,a,1.5127890380681492,5
Beere,correct,a,a,0.743841280171182,5
Banane,correct,a,a,0.6647951246704906,5
Zitrone,correct,a,a,0.6086477322969586,5
Eisen,neutral,l,a,0.8262535681715235,5
Orange,correct,a,a,0.7151319267577492,5
Pasta,neutral,l,a,0.7782717373338528,5
Dinosaurier,neutral,l,a,0.6634426303789951,5
Kirsche,correct,a,a,1.2521639153710566,5
beobachten,neutral,l,a,1.2234934527659789,5
Frucht,lure,l,a,1.4185826373286543,5
Achtung,neutral,l,a,0.7894115025992505,5
Tomate,correct,a,a,0.7922743199742399,5
Pfirsich,correct,a,a,0.5819444654625839,5
reif,correct,a,a,0.7614006735966541,5
28 changes: 28 additions & 0 deletions docs/chapter_ana/data/6_recognized.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
text,is_lure,key,yes_key,rt,subject
Pfirsich,correct,l,l,3.4308911777843605,6
Chip,neutral,a,l,1.600514869322069,6
Achtung,neutral,a,l,1.667617792969395,6
Pasta,neutral,a,l,1.316258369552088,6
Zitrone,correct,l,l,0.9861597718554548,6
Kirsche,correct,l,l,0.7757339323216002,6
Saft,correct,l,l,1.3192556067951955,6
Lexikon,neutral,a,l,0.9056561242250608,6
Bier,neutral,a,l,2.1352022833016235,6
Fenster,neutral,a,l,1.1507476668339225,6
Dinosaurier,neutral,a,l,0.7864190944164875,6
reif,correct,l,l,1.4548528397281189,6
Tomate,correct,l,l,4.645814005911234,6
Orange,correct,l,l,0.7977514301819609,6
Fliege,neutral,a,l,1.0653864408377558,6
Sibirien,neutral,a,l,0.8688276377142756,6
Apfel,correct,l,l,0.8870579990762053,6
beobachten,neutral,a,l,0.9109396138665034,6
Pastrami,neutral,a,l,0.8883346001166501,6
Obstkor,correct,l,l,0.8268972779842443,6
Frucht,lure,a,l,3.8980142642540163,6
Eisen,neutral,a,l,0.8574065704378881,6
Banane,correct,l,l,1.144414124697505,6
Auto,lure,a,l,1.3381803394368037,6
Fuss,lure,a,l,2.452994008919632,6
Beere,correct,l,l,1.0859007891122021,6
Kiwi,correct,l,l,0.634519428233034,6
28 changes: 28 additions & 0 deletions docs/chapter_ana/data/7_recognized.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
text,is_lure,key,yes_key,rt,subject
Kirsche,correct,l,l,2.139249449188356,7
reif,correct,l,l,0.7850154982006643,7
Zitrone,correct,l,l,0.6528458698885515,7
Pfirsich,correct,l,l,0.7552336362277856,7
Tomate,correct,l,l,0.9453868049749872,7
Banane,correct,l,l,0.7295611066947458,7
Achtung,neutral,a,l,0.6615101508068619,7
Pasta,neutral,a,l,0.7688634139922215,7
Chip,neutral,a,l,0.7036131676577497,7
Bier,neutral,a,l,0.6139699341729283,7
Fliege,neutral,a,l,0.6434656952624209,7
Beere,correct,l,l,0.7090871457185131,7
Pastrami,neutral,a,l,0.8128455448604655,7
Fenster,neutral,a,l,0.8639096348924795,7
Saft,correct,l,l,0.7064882890990702,7
Apfel,correct,l,l,1.4945786234311529,7
Orange,correct,l,l,1.6958615015028045,7
Auto,lure,a,l,1.850322622587555,7
Fuss,lure,a,l,2.416999524444691,7
Kiwi,correct,l,l,1.0327104402385885,7
Obstkor,correct,l,l,0.6866378484410234,7
Sibirien,neutral,a,l,0.8195776826032671,7
beobachten,neutral,a,l,0.793718268032535,7
Lexikon,neutral,a,l,0.7754189303814201,7
Dinosaurier,neutral,a,l,0.8236981340596685,7
Eisen,neutral,a,l,0.7956991638493491,7
Frucht,lure,a,l,0.8363036791997729,7
28 changes: 28 additions & 0 deletions docs/chapter_ana/data/8_recognized.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
text,is_lure,key,yes_key,rt,subject
Landstrasse,correct,a,l,3.82011604309,8
Schloss,correct,a,l,1.0862288475,8
Lexikon,neutral,a,l,0.7771618366240001,8
Frucht,lure,a,l,1.6674489975,8
Zug,correct,l,l,1.07418394089,8
Auto,lure,a,l,1.54333305359,8
Wagen,correct,l,l,0.8681318759919999,8
Volkswagen,correct,l,l,0.812144994736,8
Bier,neutral,a,l,0.712541818619,8
beobachten,neutral,a,l,0.6905210018160001,8
Fuss,lure,a,l,6.36851906776,8
Fenster,neutral,a,l,0.757909059525,8
Garage,correct,l,l,0.713124036789,8
Rennen,correct,a,l,1.4577529430399998,8
Achtung,neutral,a,l,0.76385307312,8
Fliege,neutral,a,l,0.645263910294,8
Lastwagen,correct,l,l,0.861029863358,8
Sibirien,neutral,a,l,0.867551088333,8
Chip,neutral,a,l,1.5150680542,8
Pasta,neutral,a,l,0.764090061188,8
Fortbewegungsmittel,correct,l,l,1.7877769470200002,8
Pastrami,neutral,a,l,0.758733034134,8
Jeep,correct,l,l,0.624576807022,8
Eisen,neutral,a,l,1.4898149967200003,8
Dinosaurier,neutral,a,l,0.797860860825,8
fahren,correct,l,l,0.825237989426,8
Bus,correct,l,l,0.62498497963,8
Binary file added docs/chapter_ana/data/dat.rda
Binary file not shown.
Binary file added docs/chapter_ana/data/dat.rds
Binary file not shown.
28 changes: 28 additions & 0 deletions docs/chapter_ana/data/export.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
text,is_lure,key,yes_key,rt,subject
Bier,neutral,l,a,2.18085813522,0
Dinosaurier,neutral,l,a,0.981130123138,0
Volkswagen,correct,a,a,1.03971600533,0
Sibirien,neutral,l,a,2.89859485626,0
Fortbewegungsmittel,correct,a,a,2.87047886848,0
Bus,correct,a,a,1.13571500778,0
Lexikon,neutral,l,a,0.850701093674,0
Jeep,correct,a,a,0.929927825928,0
Fenster,neutral,l,a,0.985253810883,0
Eisen,neutral,l,a,1.14007902145,0
Frucht,lure,l,a,1.1348760128,0
Landstrasse,correct,a,a,1.79826402664,0
Rennen,correct,a,a,1.19159293175,0
Pasta,neutral,l,a,0.963559865952,0
Fuss,lure,l,a,1.06597208977,0
Achtung,neutral,l,a,3.96294808388,0
beobachten,neutral,l,a,1.65666508675,0
Garage,correct,a,a,0.937987804413,0
Zug,correct,a,a,2.6815969944,0
Lastwagen,correct,a,a,0.87423491478,0
Chip,neutral,l,a,0.973922967911,0
Schloss,correct,a,a,0.785863161087,0
Fliege,neutral,l,a,1.09828686714,0
fahren,correct,l,a,1.993694067,0
Auto,lure,l,a,2.25292301178,0
Wagen,correct,a,a,1.20013713837,0
Pastrami,neutral,l,a,1.26868891716,0
Binary file added docs/chapter_ana/figures/rstudio_splash.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/chapter_ana/figures/stroop.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions docs/chapter_ana/references.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
% Encoding: UTF-8
@Article{Eklund2016,
author = {Eklund, Anders and Nichols, Thomas E. and Knutsson, Hans},
title = {Cluster failure: Why fMRI inferences for spatial extent have inflated false-positive rates},
journal = {Proceedings of the National Academy of Sciences},
year = {2016},
issn = {0027-8424},
abstract = {Functional MRI (fMRI) is 25 years old, yet surprisingly its most common statistical methods have not been validated using real data. Here, we used resting-state fMRI data from 499 healthy controls to conduct 3 million task group analyses. Using this null data with different experimental designs, we estimate the incidence of significant results. In theory, we should find 5\% false positives (for a significance threshold of 5\%), but instead we found that the most common software packages for fMRI analysis (SPM, FSL, AFNI) can result in false-positive rates of up to 70\%. These results question the validity of some 40,000 fMRI studies and may have a large impact on the interpretation of neuroimaging results.The most widely used task functional magnetic resonance imaging (fMRI) analyses use parametric statistical methods that depend on a variety of assumptions. In this work, we use real resting-state data and a total of 3 million random task group analyses to compute empirical familywise error rates for the fMRI software packages SPM, FSL, and AFNI, as well as a nonparametric permutation method. For a nominal familywise error rate of 5\%, the parametric statistical methods are shown to be conservative for voxelwise inference and invalid for clusterwise inference. Our results suggest that the principal cause of the invalid cluster inferences is spatial autocorrelation functions that do not follow the assumed Gaussian shape. By comparison, the nonparametric permutation test is found to produce nominal results for voxelwise as well as clusterwise inference. These findings speak to the need of validating the statistical methods being used in the field of neuroimaging.},
doi = {10.1073/pnas.1602413113},
elocation-id = {201602413},
eprint = {https://www.pnas.org/content/early/2016/06/27/1602413113.full.pdf},
publisher = {National Academy of Sciences},
url = {https://www.pnas.org/content/early/2016/06/27/1602413113},
}

@Misc{Robinson2017b,
author = {Robinson, David},
title = {The Incredible Growth of Python},
month = {September},
year = {2017},
note = {[Online; accessed Mar 3, 2019]},
day = {6},
editor = {Stackoverflow},
url = {https://stackoverflow.blog/2017/09/06/incredible-growth-python/},
}

@Misc{Robinson2017a,
author = {Robinson, David},
title = {The Impressive Growth of R},
month = {October},
year = {2017},
note = {[Online; accessed Mar 3, 2019]},
day = {10},
editor = {Stackoverflow},
url = {https://stackoverflow.blog/2017/10/10/impressive-growth-r/},
}

@Misc{Muenchen2019,
author = {Muenchen, Robert A.},
title = {The Popularity of Data Science Software},
month = {February},
year = {2019},
note = {[Online; accessed Mar 3, 2019]},
day = {25},
url = {http://r4stats.com/articles/popularity/},
}

@Article{Stroop1935,
author = {Stroop, J. Ridley},
title = {Studies of interference in serial verbal reactions},
journal = {Journal of Experimental Psychology},
year = {1935},
volume = {18},
pages = {643-662},
url = {http://www.yorku.ca/pclassic/Stroop},
}

@Article{MacLeod1991,
author = {Colin M. MacLeod},
title = {Half a Century of Research on the Stroop Effect: An Integrative Review},
journal = {Psychological Bulletin},
year = {1991},
volume = {109},
number = {2},
pages = {163-203},
}

@Comment{jabref-meta: databaseType:bibtex;}

0 comments on commit 256505f

Please sign in to comment.