-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregression.html
65 lines (65 loc) · 3.01 KB
/
regression.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
<!DOCTYPE HTML>
<html>
<head>
<title>Linear Regression - StatApp</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" href="favicon.png"></link>
<meta charset="UTF-8">
<style>
#data input {
min-width: 50px;
}
body {
margin-left: 20px;
}
button:not(:disabled, .calculatorEnter, .removeCalculator):active {
background: rgb(100 173 100) !important;
}
p {
line-height: 1.5;
}
h2 {
margin-bottom: 5px;
}
</style>
</head>
<body>
<h1>StatApp: Linear Regression</h1>
<button id="addRow" class="tablebtn">+</button>
<button id="removeRow" class="tablebtn">–</button><button id="hideData" style="min-width: 45px;">Hide</button>
<small>Use arrow keys to navigate for a faster experience</small>
<table><tbody id="data"><td><input id="xName" placeholder="x" class="tablebtn"></td>
<td><input id="yName" placeholder="y" class="tablebtn"></td></tr></tbody></table><br>
<span>Transformation on y data:</span> <input id="transformation" placeholder="y"></input><br>
<span>Confidence level: </span><input id="confidence" placeholder="95" class="limited"><span>%</span><br>
<span>Show...</span>
<input type="checkbox" id="showpoints" checked><label for="showpoints">data points?</label>
<input type="checkbox" id="showline" checked><label for="showline">LSRL?</label>
<input type="checkbox" id="showconfidence" checked><label for="showconfidence">confidence interval?</label>
<input type="checkbox" id="showprediction" checked><label for="showprediction">prediction interval?</label>
<br><button id="save">Save Data</button><button id="load">Load Data</button>
<button id="showcalculator">Calculator</button><button id="enter">Enter!</button><br>
<div id="output" style="display:none;">
<h2>Graph</h2>
<canvas id="canvas" width="750" height="450" style="width:750px;height:450px;"></canvas><br>
<br><canvas id="residualPlot" width="750" height="450" style="width:750px;height:450px;"></canvas>
<h2>Summary Data</h2>
<p><span id="count"></span><br>
<span id="equation"></span><br>
<span id="r"></span><br>
<span id="r2"></span><br>
<span id="slopeT"></span><br>
<span id="slopeInterval"></span><br>
<span id="sResid"></span><br>
</p>
<h2>Prediction</h2>
<span>Estimate output from </span> input = <input id="predictX" placeholder="0" class="limited"><span></span>
<button id="enterPredictX">Enter!</button><br><span id="outputPredictX"></span><br>
<span>Inverse estimate input from </span>output = <input id="predictY" placeholder="0" class="limited"><span> (experimental)</span>
<button id="enterPredictY">Enter!</button><br><span id="outputPredictY"></span>
</div>
<script src="calculator.js"></script>
<script src="regression.js"></script>
<a href="./" class="footer">Home</a>
</body>
</html>