Skip to main content
. 2020 Dec 16;117(52):33117–33123. doi: 10.1073/pnas.2014241117
Algorithm 1: BESS.Fix(s): Best-Subset Selection with a given support size s.
1) Input: X, y, a positive integer kmax, and a threshold τs.
2) Initialize A0={j:i=1pI|XjyXjXj||XiyXiXis},I0=(A0)c,
and (β0, d0):
βI00=0,
dA00=0,
βA00=XA0XA01XA0y,
dI00=XI0yXβ0/n.
3) For m=0,1,, do
(βm+1,dm+1,Am+1,Im+1)=Splicing(βm,dm,Am,Im,kmax,τs).
If (Am+1,Im+1)=(Am,Im), then stop
end for
4) Output (β^,d^,A^,I^)=(βm+1,dm+1Am+1,Im+1).

Note that splicing size k is an important parameter in splicing. Typically, we can try all possible values of ks.