A function to determine the parameters for the derandomized knockoffs procedure

get_params(
  type,
  v = NULL,
  k = NULL,
  alpha = NULL,
  M = NULL,
  eta = NULL,
  thres = 50,
  beta = 1
)

Arguments

type

the type of error to control. Options include "pfer" and "kfwer".

v

a positive numver indicating the PFER target (default: 1). Can be left NULL if using the kfwer error.

k

a positive integer corresponding to k-FWER.

alpha

a number between 0 and 1 indicating the target k-FWER level.

M

an integer specifying the number of knockoff copies computed (default: 30).

eta

a number betweem 0 and 1 indicating the selection frequency (default: 0.5).