Skip to content

Commit

Permalink
Merge pull request #7 from YujiSODE/branchY20160913
Browse files Browse the repository at this point in the history
Branch y20160913
  • Loading branch information
YujiSODE authored Sep 13, 2016
2 parents 7e84b9f + ebd8836 commit 73721ed
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#Change Log

##[3.1] - 2016-09-13
##Changed
- [README.md] line 44: `###[1-sample t-test: testingFtU3.html]`
- [README.md] line 34: `###[Test with bootstrap method: testingFtU2.html]`
- [README.md] line 27: `###[2 sample test: testingFtU.html]`
- [README.md]: updated README.md
- [README.md] line 16: `###[Test with bootstrap method: v2.0+]`
- [README.md] line 11: `###[2 sample test: v1.0+]`
- [subStatDist2.js] line 71: ` output+='Rejection rates:'+d.FtU+'\n<Details: p value>\n';`

## [3.0] - 2016-09-12
##Added
- [subStatDist.js] line 54: ` lk2=f('a','link2'+r9,tDiv.id),lk2.innerHTML='<br>1-sample t-test',lk2.href='./testingFtU3.html';`
Expand Down
23 changes: 19 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,30 @@ https://github.com/YujiSODE/testingFtU
______

##Script
###[2 sample test]
###[2 sample test: v1.0+]
* testingFtU.html
* statDist.js
* subStatDist.js

###[Test with bootstrap method]
###[Test with bootstrap method: v2.0+]
* testingFtU2.html
* statDist2.js
* subStatDist2.js

###[1-sample t-test: v3.0+]
* testingFtU3.html
* statDist3.js
* subStatDist3.js

##How to use
###[2 sample test]
###[2 sample test: testingFtU.html]
* **"Sample A" and "Sample B":** sample inputs (available data is csv formatted numerical array).
* **"Run" button;** it runs three statistical tests(F-test, t-test, and U-test) with two given sample(Sample A and Sample B),
and outputs the test results as the upper probabilities.
* **"Clear" button;** it clears the test results by "Run" button.
* **"Output as email" button;** it saves the test results by "Run" button as email to given address.

###[Test with bootstrap method]
###[Test with bootstrap method: testingFtU2.html]
* **"Sample":** sample input (available data is csv formatted numerical array).
* **"Resampling from":** sample input to be resampled in bootstrap method (available data is csv formatted numerical array).
* **"Time of simulation";** it sets how many times the sample and resampled data are tested.
Expand All @@ -36,6 +41,16 @@ ______
* **"Clear" button;** it clears the test results by "Run" button.
* **"Output as email" button;** it saves the test results by "Run" button as email to given address.

###[1-sample t-test: testingFtU3.html]
* **"Resampling from"** sample input to be resampled in bootstrap method (available data is csv formatted numerical array).
* **"Given mean";** it is used as predetermined value of mean in the 1-sample t-test.
* **"Resampling size"** sample size to be resampled in bootstrap method.
* **"Time of simulation";** it sets how many times resampled and tested.
* **"Significance level";** it sets a statistical significance level (0-1) in order to test if the null hypothesis (no difference) is rejected.
* **"Run" button;** it runs 1-sample t-test with the given resampled data, and outputs the test results: a rate of the null hypothesis rejection, and details expressed with the upper probabilities.
* **"Clear" button;** it clears the test results by "Run" button.
* **"Output as email" button;** it saves the test results by "Run" button as email to given address.

##Library list
* statDist.js (Yuji SODE,2016): the Artistic License or the GPL v1 or later; https://github.com/YujiSODE/statDist

Expand Down
2 changes: 1 addition & 1 deletion subStatDist2.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var B,tDiv,fm,fmR,lbA,ipA,lbB,ipB,lbTSm,ipTSm,lbAlpha,ipAlpha,Btn,TxtALb,txtA,br
W.addEventListener('message',function(e){
var output='F-test,t-test,U-test\n',d=e.data,n=d.p.length;
t=slf.document.getElementById(txtA.id);
output+=d.FtU+'\n<Details: p value>\n';
output+='Rejection rates:'+d.FtU+'\n<Details: p value>\n';
for(var i=0;i<n;i+=1){output+=d.p[i]+'\n';}
t.value+=output;
},true);
Expand Down

0 comments on commit 73721ed

Please sign in to comment.