Skip to main content
. Author manuscript; available in PMC: 2016 Jan 1.
Published in final edited form as: Neurobiol Aging. 2014 Oct 17;36 Suppl 1:S178–S184. doi: 10.1016/j.neurobiolaging.2014.03.043

Algorithm for the fitting of the parameters
 1: Inititialize α(0), β(0)
 2: for l = 1 to L do
 3:  for k = 1 to K do
 4:    θk(1)=argminθk(i,j)Ik(yijkf(αi(0)tij+βi(0);θk))2
 5:    σk(1)2=1|Ik2I4|(i,j)Ik(yijkf(αi(0)tij+βi(0);θk(1)))2
 6:  end for
 7:  for i = 1 to I do
 8:    (αi(1),βi(1))=argminαi,βi(j,k)Ii1σk(1)2(yijkf(αitij+βi;θk(1)))2
 9:  end for
 10:  α(0) = α(1); β(0) = β(1)
 11: end for
 12: for k = 1 to K do
 13:  if bk < 0 then
 14:    ak(1)=ak(1),bk(1)=bk(1),dk(1)=dk(1)+ak(1)
 15:  end if
 16: end for
 17: for i = 1 to I do
 18:   αi(1)=αi(1)σN,βi(1)=βi(1)mNσN
 19: end for