Skip to main content
. Author manuscript; available in PMC: 2024 Dec 1.
Published in final edited form as: Ann Appl Stat. 2023 Oct 30;17(4):3550–3569. doi: 10.1214/23-aoas1775

Algorithm 1.

Selection of the tuning parameter 7 using cross-validation

Step 1 Pre-determine a grid of points for γ in [0,1], denoted as γ(g),g=1,,G, and set each cvg=0.
Step 2 Randomly assign the K strata into M folds, leaving one fold for testing and the others for training. Set q = 1.
Step 2.1 While qM, use the qth training set to compute the de-biased lasso estimator with γ(g),g=1,,G, denoted as b^(gq), and define the active set A^(gq).
Step 2.2 Define the thresholded de-biased lasso estimator b^thres(gq)=b^(gq)1(jA^(gq)), i.e. setting components of b^(gq) outside the active set A^(gq) to 0.
Step 2.3 Compute the negative log partial likelihood on the qth testing set (q)(b^thres(gq)).
Step 2.4 Set cvgcvg+N(q)(q)(bˆthres(gq)), for g=1,,G, where N(q) is the total number of observations in the qth testing set.
Step 2.5 Set qq+1 and go to Step 2.1.
Step 3 Let g^=argmingcvg. The final output tuning parameter value is γ(g^).