Skip to main content
. Author manuscript; available in PMC: 2020 Apr 1.
Published in final edited form as: Stat Biosci. 2017 Dec 6;11(1):47–90. doi: 10.1007/s12561-017-9208-x

Algorithm 1.

AIM procedure

input: matrices Z, X, positive semi-definite matrix Q, λ2 > 0
1: define Q̃ := Q+λ2Ip;
2: decompose as Q̃ = LL;
3: find REML estimates σ̂2 and σ^b2, of σ2 and σb2, in LMM with X as matrix of fixed effects, ZL−1 as matrix of random effects, b~N(0,σb2Ip) and ε ~ 𝒩(0,σ2In);
4: define λ:=σ^2/σ^b2 and find estimates β̂AIM and AIM by applying formula (2.4) with matrix .