| ppi_scale | R Documentation |
Performs simulations to compute a projection pursuit index on structured (sampled) data and on random noise, allowing a comparison of index scale across contexts.
ppi_scale(data, index_fun, n_sim = 100, n_obs = 500, seed = NULL)
data |
A data frame or tibble with at least two numeric columns. |
index_fun |
A function that takes two numeric vectors ( |
n_sim |
Integer. Number of simulations. Default is 100. |
n_obs |
Integer. Number of observations per simulation. Default is 500. |
seed |
Optional integer seed for reproducibility. |
A tibble with columns:
simulation: simulation number
var_i, var_j: variable names
var_pair: pair name as a string
sigma: 0 for structured data, 1 for noisy data
index: index value returned by index_fun
ppi_scale(data_gen("polynomial", degree = 3), scag_index("stringy"), n_sim = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.