powered by
For a given index function, simulates how the index behaves across a range of sample sizes when applied to pairs of standard normal noise.
ppi_samplesize_effect(index_fun, n_sim = 100)
A tibble with:
sample_size: sample size used for each simulation block
sample_size
percentile95: 95th percentile of the index values over simulations
percentile95
A function taking two numeric vectors (x, y) and returning a scalar index.
x
y
Integer. Number of simulations per sample size. Default is 100.
if (FALSE) { ppi_samplesize_effect(scag_index("stringy"), n_sim = 3) }
Run the code above in your browser using DataLab