| ppi_mean | R Documentation |
Simulate and Summarize Projection Pursuit Index (PPI) Values
ppi_mean(data, index_fun, n_sim = 100, n_obs = 300)
data |
A data frame or matrix. Must have at least two columns. |
index_fun |
A function taking two numeric vectors ( |
n_sim |
Integer. Number of simulations. Default is 100. |
n_obs |
Integer. Number of observations to sample in each simulation. Default is 300. |
A tibble with:
var_i, var_j: Names of variable pairs
mean_index: Mean index value over simulations
data <- as.data.frame(data_gen(type = "polynomial", degree = 2))
ppi_mean(data, scag_index("stringy"), n_sim = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.