powered by
Simulate and Summarize Projection Pursuit Index (PPI) Values
ppi_mean(data, index_fun, n_sim = 100, n_obs = 300)
A tibble with:
var_i, var_j: Names of variable pairs
var_i
var_j
mean_index: Mean index value over simulations
mean_index
A data frame or matrix. Must have at least two columns.
A function taking two numeric vectors (x, y) and returning a scalar index.
x
y
Integer. Number of simulations. Default is 100.
Integer. Number of observations to sample in each simulation. Default is 300.
data <- as.data.frame(data_gen(type = "polynomial", degree = 2)) ppi_mean(data, scag_index("stringy"), n_sim = 10)
Run the code above in your browser using DataLab