Simulate repetitions of drawing a subset from data of a specified type, calculate the (subset) correlation and compute coverage probabilities and type 1 errors for specified inference type
1 2 3 | run_cor_sim(N, fraction = NA, rho = 0, rho_sub = NA,
distribution = "norm_norm", test = "z", permuttype = "simple",
n_permut = 1000, repetitions = 100, progress_bar = T)
|
N |
(integer) Size of the full sample |
fraction |
Size of the subset as a percentage of the full set |
distribution |
One of "norm_norm", "log_norm" or "log_log". Refers to the "type" argument in getBiCop_exact(). |
test |
"z" for Fisher's z transformation and p-values and confidence intervals based on normal theory. "permutation" for running a permutation test |
permuttype |
"simple" or "studentized" |
n_permut |
Number of permutations for the permutation tests |
repetitions |
The simulation will be repeated this many times |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.