ppi_samplesize_effect: Simulate Effect of Sample Size on Projection Pursuit Index...

View source: R/sample_size_effect.R

ppi_samplesize_effectR Documentation

Simulate Effect of Sample Size on Projection Pursuit Index Under Gaussian Noise

Description

For a given index function, simulates how the index behaves across a range of sample sizes when applied to pairs of standard normal noise.

Usage

ppi_samplesize_effect(index_fun, n_sim = 100)

Arguments

index_fun

A function taking two numeric vectors (x, y) and returning a scalar index.

n_sim

Integer. Number of simulations per sample size. Default is 100.

Value

A tibble with:

  • sample_size: sample size used for each simulation block

  • percentile95: 95th percentile of the index values over simulations

Examples

## Not run: 
ppi_samplesize_effect(scag_index("stringy"), n_sim = 3)

## End(Not run)

spinebil documentation built on Nov. 5, 2025, 7:35 p.m.