-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
93 lines (88 loc) · 3.96 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<!-- README:
To read .csv files correctly, this must be loaded on an actual web server.
python -m SimpleHTTPServer 8000
should do it.
-->
<!-- TODO:
replace all jQuery functionality with D3
-->
<head>
<title>Cruncher</title>
<!-- load jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<!-- load D3.js -->
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<!-- load our code -->
<!-- first the data processing functions -->
<script src="statistics.js"></script>
<!-- then the website mechanics -->
<script src="bislider.js"></script>
<script src="dataset.js"></script>
<script src="axes.js"></script>
<script src="barchart.js"></script>
<script src="scatter.js"></script>
<script src="mechanics.js"></script>
<script src="file_utils.js"></script>
<script src="startup.js"></script>
<!-- more website mechanics -->
<script>
$(document).ready(function(){
startup() // in startup.js
});
</script>
<!-- stylin' -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2>Data Cruncher</h2>
<div class="tab_bar" id="tabs">
<div class="tab" id="tab1" onclick="load_tab(this, 'sheet1')">New</div>
<div class="tab" id="tab0" onclick="load_tab(this, 'sheet0')">About</div>
</div>
<div id="datasets">
<div id="sheet0" class="sheet">
<!-- introduction -->
This tool is intended to address some of the complaints that have been growing lately around the use of statistical measures, especially in measuring the size/significance of effects in psychology and medical studies.<br />
<a href="http://www.nature.com/news/scientific-method-statistical-errors-1.14700">http://www.nature.com/news/scientific-method-statistical-errors-1.14700</a><br />
<a href="http://www.nature.com/news/statisticians-issue-warning-over-misuse-of-p-values-1.19503">http://www.nature.com/news/statisticians-issue-warning-over-misuse-of-p-values-1.19503</a><br />
<br />
We wish to answer statistical questions about one or more sets of data. These questions include:
<ul>
<li>What is the mean/median/standard deviation/etc. of data set A?</li>
<li>What is the probability that the mean(/etc.) of data set A is greater than that of data set B?</li>
<li>What are confidence bounds on the difference between two sets of data?</li>
</ul>
These questions will be given clear and theoretically sound answers using straightforward numerical statistical analyses.<br />
<a href="https://en.wikipedia.org/wiki/Bootstrapping_(statistics)">https://en.wikipedia.org/wiki/Bootstrapping_(statistics)</a><br />
</div>
<div id="sheet1" class="sheet">
<!-- file loading stuff -->
<div id="file_drop" style="border: 5px dashed #333333; width: 300px; padding: 20px;">
<span id="status" style="margin-left: 10px; font-weight: bold">Drop CSV file here to load</span>
</div>
<br/>
<br/>
<a style='color:blue; text-decoration:underline; cursor:pointer' onclick="load_file('test.csv')">Load small test data</a>
<br/>
<br/>
<a style='color:blue; text-decoration:underline; cursor:pointer' onclick="load_file('test2col.csv')">Load two column test data</a>
<br/>
<br/>
<a style='color:blue; text-decoration:underline; cursor:pointer' onclick="load_file('testoverflow.csv')">Load overflowing test data</a>
<br />
<br />
Compare <select id="analysisType">
<option>means</option>
<option>standard deviations</option>
</select>
<div style="display:inline">
of <select id="dataSeries0" style="display:inline-block"></select>
and <select id="dataSeries1" style="display:inline-block"></select>
</div>
... <button id="analyzeButton" onclick="analyze()">Go!</button>
</div>
</div>
</body>
</html>