create.pc.knockoff: Create PC Knockoffs

Description Usage Arguments Value Examples

View source: R/create.pc.knockoff.R

Description

Create non-parametric knockoffs based on principal component regression and residuals permutation.

Usage

1
create.pc.knockoff(X, pc.num)

Arguments

X

An input original design matrix.

pc.num

The number of pricial components to be used for generating knockoff matrices.

Value

A principal component knockoff matrix.

Examples

1
2
3
set.seed(10)
X <- matrix(rnorm(100), nrow = 10)
tmp <- create.pc.knockoff(X = X, pc.num = 5)

KOBT documentation built on Feb. 20, 2020, 5:08 p.m.