This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Detecting correlation | |
# Defines three functions using base R to illustrate techniques for identifying correlations | |
# between continuous random variables, then tests against different types of data | |
# Pearsons r, distance correlation, Maximal Information Coefficient (approximated) | |
# A simple bootstrap function to estimate confidence intervals | |
bootstrap <- function(x,y,func,reps,alpha){ | |
estimates <- c() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Originally found at: http://rangevoting.org/Qnorm.html | |
/** * @(#)qnorm.js * * Copyright (c) 2000 by Sundar Dorai-Raj | |
* * @author Sundar Dorai-Raj | |
* * Email: sdoraira@vt.edu | |
* * This program is free software; you can redistribute it and/or | |
* * modify it under the terms of the GNU General Public License | |
* * as published by the Free Software Foundation; either version 2 | |
* * of the License, or (at your option) any later version, | |
* * provided that any use properly credits the author. |