View source: R/correlation_calibration.R
corr.calibration | R Documentation |
This function finds appropriate scaling_parameters for the kappa_calc function by means of bootstrapping.
corr.calibration(qt1, qt2, reps = 10000)
qt1 |
A numeric vector. |
qt2 |
A numeric vector. |
reps |
The number of repeates we want to perform for each sample size |
A list with the values:
* bias_scale, a value to determine the bias for the correlation estimators * weight_scale, a value to determine how much weight we assign to each correlation estimator * safe_weight_scale, same as weight scale, but larger. Using this weight decreases the chance of type 1 error, with the cost of statistical power.
n_val <- 10000
Q <- MASS::mvrnorm(n = n_val, mu = c(0,0), Sigma = matrix(c(1,0.3,0.3,1),
nrow = 2, ncol = 2))
qt1_val <- Q[,1]
qt2_val <- Q[,2]
res <- corr.calibration(qt1_val, qt2_val, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.