Skip to contents

A subsampling method for nonparameter additive model based on Orthogonal Array.

Usage

IES(X, n, q = 16, seed = NULL)

Arguments

X

A data.frame or matrix consists of explanatory variables.

n

Subsample size.

q

Hyperparamter of how to divide the axes. Default to 16.

seed

Random seed for the sampling.

Value

Subsample index.

References

Yi Zhang, Lin Wang, Xiaoke Zhang & HaiYing Wang (2024) Independence-Encouraging Subsampling for Nonparametric Additive Models, Journal of Computational and Graphical Statistics, https://www.tandfonline.com/doi/full/10.1080/10618600.2024.2326136.

Examples

data <- data_numeric_regression
X <- data[-which(names(data) == "y")]
IES(X, n = 100, q = 16, seed = NULL)
#>   [1]  808 8300 6073 1714  718 2499 4778 2224 7041 7584 7188 2292 1364 8521 5526
#>  [16] 4617 2774 2202 6885 8722  651 7449 6780 4099 8998 7949 6886 8770 7059 4834
#>  [31] 1168 7832 7852 6915 3062 8156 4638 9810 4014 5199 6228  158  450 3991 8818
#>  [46] 8653  955 8908 8783 3242 4526   34  564 5226 2611 1703 5107 8898 1204 1686
#>  [61] 7890  611 5995 2237 9138 9007 7600 6736 6203  309 3948 4310 8805 9649 3874
#>  [76] 5848 7325 2588 5605 6170 6668  260 2944  284 5325 7504 1950 7472 6087 2556
#>  [91] 8861 5860 8841 4986 6600 1844 4864 4072 2723 5362