-
Notifications
You must be signed in to change notification settings - Fork 0
/
pchisq.html
executable file
·65 lines (49 loc) · 1.79 KB
/
pchisq.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 lang="en-US">
<meta name="keywords" content="Statistics, p value, chi-square distribution" />
<meta charset="UTF-8" />
<head>
<title>P Value Calculator, Chi-square</title>
<script src="statFunctions.js"></script>
<script src="canvas.js"></script>
<script src="pchisq.js"></script>
<link rel="stylesheet" href="pvals.css">
</head>
<body onload="init()">
<div id="wrapper">
<ul class="menu">
<li><a href="pnormal.html">Normal Distribution</a></li>
<li class="active"><span class="greek">χ</span><sup>2</sup> Distribution</li>
<li><a href="pt.html">t Distribution</a></li>
<li><a href="pf.html">F Distribution</a></li>
</ul>
<br />
<h1>P-Value Calculator for <span class="greek">χ</span><sup>2</sup> Distribution</h1>
<br />
<form name="input" action="" method="get">
<p>Degree of freedom: <input type="number" id="df" name="df" min="1" step="1" /> </p>
<p><span class="greek">χ</span><sup>2</sup>: <input type="number" id="Chisq" name="Chisq" min="0" step="any" />
<input type="button" name="p value" value="Compute p-value"
onClick="PfromX2_chisq(this.form)" /></p>
<p>p-value: <input type="number" id="p-value" name="p_value" step="any" />
<input type="button" name="Chi square" value="Compute Chi-Square" onClick="X2fromP_chisq(this.form)" /></p>
<p>p-value type: <br />
<input onchange="changePtype(this.form,1)" type="radio" id="ptype1"
name="ptype1" value="1" checked="checked" />right tail<br />
<input onchange="changePtype(this.form,2)" type="radio" id="ptype2"
name="ptype2" value="2" />left tail</p>
</form>
<hr />
<p id="input"></p>
<p id="output"></p>
<p id="Rcommand"></p>
<br /> <br />
<canvas id="chisqcurve" width="535" height="300">
CANVAS NOT SUPPORTED IN THIS BROWSER!
</canvas>
<br /> <br />
</div>
</body>
</html>