run_cor_sim: Simulate repetitions of drawing a subset from data of a...

Description Usage Arguments

Description

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

Usage

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)

Arguments

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


Thie1e/subsetcor documentation built on May 9, 2019, 4:41 p.m.