Page 1 of 1

Miscellaneous MLE

Posted: Fri Feb 19, 2016 11:49 am
by deltaD
Hi,

Could you please help me estimate via MLE the specification below? I am given only the dependent variable Y. My independent variables are separate AR(1) processes. Here it is:

@ename e1
@evar var(e1)=1

Y=c(1)+c(2)*X1(-1)+c(3)*X2(-1)+(v(-1)^(0.5))*e1
X1=c(4)*X1(-1)+c(5)*e1+c(6)*(@abs(e1)-(2/pi)^(0.5))
X2=c(7)+c(8)*X2(-1)+c(9)*e1+c(10)*(@abs(e1)-(2/pi)^(0.5))
v=(exp(X1+X2))^2

I started with sspace, but noticed that sspace works only with linear specifications. Many thanks in advance.

Re: Miscellaneous MLE

Posted: Fri Feb 19, 2016 12:12 pm
by EViews Gareth
What's the likelihood?

Re: Miscellaneous MLE

Posted: Fri Feb 19, 2016 6:44 pm
by deltaD
Thanks a lot for your reply Gareth. The log-likelihood function is as follows:

f_t((c);X1_t,X2_t|Y_t)=-ln(2pi)-(X1_t-1+X2_t-1)-{[Y_t-c(1)-c(2)*X1_t-1-c(3)*X2_t-1]^2}/2v_t-1

Re: Miscellaneous MLE

Posted: Mon Feb 22, 2016 9:12 am
by EViews Gareth
Seems pretty easy to transform into a logl object:

Code: Select all

logl mylog mylog.append @logl logl1 mylog.append v = (@exp(x1+x2))^2 mylog.append logl1 = -(x1(-1)+x2(-1)) + (y-c(1)-c(2)*x1(-1)-c(3)*x2(-1))/(2*v(-1))

Note I see nothing here that estimates the variance term - v is fixed.