# \donttest{
# Generate some example W statistics
W <- c(2.1, -0.5, 3.8, -1.2, 4.5, 0.3, -2.1, 1.9)
# Apply knockoff filter
selected <- knockoff_filter(W, fdr = 0.1)
print(selected) # Indices of selected variables
# }
Run the code above in your browser using DataLab