├── .Rhistory ├── run.R ├── .Rproj.user └── 74FDFA94 │ ├── sdb │ └── prop │ │ ├── E8FE08F8 │ │ └── INDEX │ ├── saved_source_markers │ └── pcs │ ├── source-pane.pper │ ├── workbench-pane.pper │ ├── files-pane.pper │ └── windowlayoutstate.pper ├── p-hacker ├── www │ ├── preloader.gif │ ├── showstartmessage.js │ ├── busy.js │ ├── busy.css │ ├── loading.css │ └── accordion.css ├── .Rhistory ├── DESCRIPTION ├── Readme.md ├── snippets │ ├── tech_details.html │ ├── about.html │ └── quick_start.html ├── global.R ├── ui.R └── server.R ├── rmvnorm.R ├── LICENSE ├── P-Hacking.Rproj ├── test.R ├── reliability_test.R └── .Rapp.history /.Rhistory: -------------------------------------------------------------------------------- 1 | shiny::runApp('p-hacker') 2 | -------------------------------------------------------------------------------- /run.R: -------------------------------------------------------------------------------- 1 | library(shiny) 2 | runApp("p-hacker") -------------------------------------------------------------------------------- /.Rproj.user/74FDFA94/sdb/prop/E8FE08F8: -------------------------------------------------------------------------------- 1 | { 2 | } -------------------------------------------------------------------------------- /.Rproj.user/74FDFA94/saved_source_markers: -------------------------------------------------------------------------------- 1 | {"active_set":"","sets":[]} -------------------------------------------------------------------------------- /.Rproj.user/74FDFA94/pcs/source-pane.pper: -------------------------------------------------------------------------------- 1 | { 2 | "activeTab" : -1 3 | } -------------------------------------------------------------------------------- /.Rproj.user/74FDFA94/pcs/workbench-pane.pper: -------------------------------------------------------------------------------- 1 | { 2 | "TabSet1" : 0, 3 | "TabSet2" : 0 4 | } -------------------------------------------------------------------------------- /p-hacker/www/preloader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nicebread/p-hacker/HEAD/p-hacker/www/preloader.gif -------------------------------------------------------------------------------- /p-hacker/www/showstartmessage.js: -------------------------------------------------------------------------------- 1 | $(document).ready( 2 | function(){ 3 | $('div.loading').show(); 4 | }); 5 | -------------------------------------------------------------------------------- /.Rproj.user/74FDFA94/sdb/prop/INDEX: -------------------------------------------------------------------------------- 1 | ~%2FDocuments%2FR%2FFunktionen%2FGitHub%2FshinyApps%2Fp-hacker%2Fp-hacker%2Fserver.R="E8FE08F8" 2 | -------------------------------------------------------------------------------- /p-hacker/.Rhistory: -------------------------------------------------------------------------------- 1 | shiny::runApp() 2 | shiny::runApp() 3 | shiny::runApp() 4 | shiny::runApp() 5 | shiny::runApp() 6 | shiny::runApp() 7 | shiny::runApp() 8 | -------------------------------------------------------------------------------- /rmvnorm.R: -------------------------------------------------------------------------------- 1 | library(mvtnorm) 2 | n <- 3 3 | p <- 0.5 4 | sigma <- matrix(p, nrow=n, ncol=n) 5 | diag(sigma) <- 1.0 6 | data <- rmvnorm(10000, sigma=sigma) 7 | cor(data) 8 | 9 | -------------------------------------------------------------------------------- /p-hacker/DESCRIPTION: -------------------------------------------------------------------------------- 1 | Title: p-hacker 2 | Author: Felix Schönbrodt & Tobias Kächele, with code from Uri Simonsohn & Moritz Heene 3 | AuthorUrl: http://www.nicebread.de 4 | License: GPL-3 5 | DisplayMode: Normal 6 | Type: Shiny 7 | -------------------------------------------------------------------------------- /.Rproj.user/74FDFA94/pcs/files-pane.pper: -------------------------------------------------------------------------------- 1 | { 2 | "path" : "~/Documents/R/Funktionen/GitHub/shinyApps/p-hacker/p-hacker", 3 | "sortOrder" : [ 4 | { 5 | "ascending" : true, 6 | "columnIndex" : 2 7 | } 8 | ] 9 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | p-hacker app: A shiny app to train your p-hacking skills. 2 | Copyright (C) 2015 Felix Schönbrodt (felix@nicebread.de) and Tobias Kächele. 3 | 4 | The source code of this app is licensed under a CC-BY 4.0 license (https://creativecommons.org/licenses/by/4.0/). -------------------------------------------------------------------------------- /P-Hacking.Rproj: -------------------------------------------------------------------------------- 1 | Version: 1.0 2 | 3 | RestoreWorkspace: Default 4 | SaveWorkspace: Default 5 | AlwaysSaveHistory: Default 6 | 7 | EnableCodeIndexing: Yes 8 | UseSpacesForTab: Yes 9 | NumSpacesForTab: 2 10 | Encoding: UTF-8 11 | 12 | RnwWeave: Sweave 13 | LaTeX: pdfLaTeX 14 | -------------------------------------------------------------------------------- /p-hacker/www/busy.js: -------------------------------------------------------------------------------- 1 | setInterval(function() { 2 | if ($('html').attr('class')=='shiny-busy') { 3 | setTimeout(function() { 4 | if ($('html').attr('class')=='shiny-busy') { 5 | $('div.busy').show() 6 | } 7 | }, 1000) 8 | } else { 9 | $('div.busy').hide() 10 | } 11 | }, 100) 12 | -------------------------------------------------------------------------------- /p-hacker/www/busy.css: -------------------------------------------------------------------------------- 1 | div.busy { 2 | position:absolute; 3 | top: 40%; 4 | left: 50%; 5 | margin-top: -100px; 6 | margin-left: -50px; 7 | display:none; 8 | background: rgba(230, 230, 230, .8); 9 | text-align: center; 10 | padding-top: 20px; 11 | padding-left: 30px; 12 | padding-bottom: 40px; 13 | padding-right: 30px; 14 | border-radius: 5px; 15 | } -------------------------------------------------------------------------------- /p-hacker/www/loading.css: -------------------------------------------------------------------------------- 1 | div.loading { 2 | position:absolute; 3 | top: 40%; 4 | left: 50%; 5 | margin-top: -100px; 6 | margin-left: -50px; 7 | display:none; 8 | background: rgba(230, 230, 230, .8); 9 | text-align: center; 10 | padding-top: 20px; 11 | padding-left: 30px; 12 | padding-bottom: 40px; 13 | padding-right: 30px; 14 | border-radius: 5px; 15 | } 16 | -------------------------------------------------------------------------------- /.Rproj.user/74FDFA94/pcs/windowlayoutstate.pper: -------------------------------------------------------------------------------- 1 | { 2 | "left" : { 3 | "panelheight" : 717, 4 | "splitterpos" : 300, 5 | "topwindowstate" : "HIDE", 6 | "windowheight" : 755 7 | }, 8 | "right" : { 9 | "panelheight" : 717, 10 | "splitterpos" : 450, 11 | "topwindowstate" : "NORMAL", 12 | "windowheight" : 755 13 | } 14 | } -------------------------------------------------------------------------------- /p-hacker/www/accordion.css: -------------------------------------------------------------------------------- 1 | @import url('//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css'); 2 | 3 | /* CSS Method for adding Font Awesome Chevron Icons */ 4 | .accordion-toggle:after { 5 | /* symbol for "opening" panels */ 6 | font-family:'FontAwesome'; 7 | content:"\f077"; 8 | float: right; 9 | color: inherit; 10 | } 11 | .panel-heading.collapsed .accordion-toggle:after { 12 | /* symbol for "collapsed" panels */ 13 | content:"\f078"; 14 | } -------------------------------------------------------------------------------- /p-hacker/Readme.md: -------------------------------------------------------------------------------- 1 | ## R-Index, TIVA and p-curve 2 | 3 | This R code implements the **p-curve** (Simonsohn, Nelson, & Simmons, 2013; see http://www.p-curve.com), the **R-Index**, and the **Test of Insufficient Variance, TIVA** (Schimmack, 2014; see http://www.r-index.org/). 4 | 5 | Some code is from Uri Simonsohn (http://www.p-curve.com/Supplement/R/) and from Moritz Heene. 6 | 7 | WARNING: This app is *not thoroughly tested yet*! 8 | 9 | *Version 0.2* 10 | --- 11 | ### Known issues: 12 | 13 | - p-curve plot missing 14 | - pp33b function gives slightly different results than the original pp33 function 15 | - TODO: Separate inference functions from UI functions 16 | - *All* ES are used for calculations (the R-Index Excel sheet allows to differentiate between focal hypotheses etc.) 17 | - Extension of p-curve to other alpha-levels should be tested more 18 | - Implementation of p-uniform -------------------------------------------------------------------------------- /p-hacker/snippets/tech_details.html: -------------------------------------------------------------------------------- 1 | 2 |
Run new experiment to collect your sample.
30 | Save button next to each DV and the current study is saved to your stack, awaiting some additional conceptual replications that show the robustness of the effect.
70 | Send to p-checker button below your study stack on the right, the saved test statistics are transfered to the p-checker app. Let`s see whether we can detect p-hacking!
78 |
79 |