powered by
Create non-parametric knockoffs based on principal component regression and residuals permutation.
create.pc.knockoff(X, pc.num)
An input original design matrix.
The number of pricial components to be used for generating knockoff matrices.
A principal component knockoff matrix.
# NOT RUN { set.seed(10) X <- matrix(rnorm(100), nrow = 10) tmp <- create.pc.knockoff(X = X, pc.num = 5) # }
Run the code above in your browser using DataLab