Skip to content

Instantly share code, notes, and snippets.

View Deleetdk's full-sized avatar

Emil O. W. Kirkegaard Deleetdk

View GitHub Profile
#function for finding correction correlations with CIs
cRRr_CI = function(x, y, x_SD_U, R = 1000, conf = .95, type = "basic") {
library(boot);library(psychometric);library(magrittr);library(weights)
#make df
data = data.frame(x, y)
#uncorrected r
v_r = wtd.cors(data[[1]], data[[2]]) %>% as.numeric()