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() |