Skip to main content
. Author manuscript; available in PMC: 2023 Jul 22.
Published in final edited form as: Stat Med. 2022 Feb 16;41(12):2132–2165. doi: 10.1002/sim.9348
Algorithm 1. Undersmoothing procedure
Require:Observed outcomeykfrom data,k=1,2,,n.Penalty parameterλcv,basis functionsϕs,l,and predictionsy^λcvfrom the initial HAL fit.LetSdenote the set of basis functionsϕs,lwith nonzero coefficients from the initial HAL fit.Letϵbe a small positive number.σn=1nnk=1[(yky^λcv)ϕs,l1nnk=1(yky^λcv)ϕs,l]2ϕs,lSλ=λcvwhilemaxS1nnk=1[(yky^λ)ϕs,l]σn>1nlog(n)doλ=λϵRefit HAL withλObtain new predictionsy^λfrome the update HAL fitendwhile