Skip to main content
. Author manuscript; available in PMC: 2022 Mar 1.
Published in final edited form as: Can J Stat. 2021 Feb 15;49(1):203–227. doi: 10.1002/cjs.11606
Algorithm 3. Bootstrap confidence interval
Input:matrices:X,ZandQ,column matrix of responses:y,optimal parameters:λQandλR,the number of bootstrap samples:s(by defaultss=500)Forj(1,,k)do:1.generatejth bootstrap sample,X[j],Z[j]andy[j],by sampling with replacement from[X,Z,y]2.getjth griPEER estimate,B^[j],forQ,X[j],Z[j],y[j]and tuning parametersλQandλREndDefineCIboot(Bi)the bootstrap CI forBias the percentile bootstrap confidence intervalforB^i[1],,B^i[s]with the significance levelα=0.05