#Equivalent variation #==============================================Announced EV1<-rep(0,T) #inicialization t0<-timeR-10 for (t1 in (timeR-5):(timeR+20)){ a<--0.5 b<-0.5 repeat{ e<-(a+b)/2 s[t0]<-(w[t0]*(1+e)*(1-tau[t0])-(1+rho)/(1+r[t0+1])*w[t0+1]*(1+e)*tau[t0+1]*(1+n[t0+1]))/(2+rho) C_y[t0]<-(1-tau[t0])*w[t0]*(1+e)-s[t0] C_o[t0]<-(1+r[t0])*s[t0-1]+tau[t0]*w[t0]*(1+e)*(1+n[t0]) U5<-log(C_y[t0])+log(C_o[t0+1])/(1+rho) if (U5