Algorithm 2:
Level α joint confidence bands of
Data: βr,Var(βr), βr(1),…, βr(B), Ns. |
Result: Joint confidence bands of . |
1. Perform Functional Principal Component Analysis (FPCA) on [βr(1),…,βr(B)]T. Derive the mean function μ = [μ(s1),…,μ(sL)]T, eigenvalues λ1,…,λL and eigenfunctions ψ1,…,ψL, where ψk = [ψk(s1),…,ψk(sL)]T, k = 1,…,L; |
for n = 1,…, Ns do |
2. Simulate for k = 1,…,KT. Calculate ; |
3. Calculate ; |
end |
4. Obtain q1−α, the (1−α) empirical quantile of ; |
5. The joint confidence interval at is calculated as . The upper and lower bounds of the joint confidence bands can be smoothed. |