Problem with LogL
Posted: Sun Mar 15, 2009 4:14 pm
Hi!
I have a disequilibrium model for the loans market (Demand and Supply). Literature suggested to use ML. I have found a program called diseq1.prg in your sample programs which is almost the one I needed. Therefore, I have "copied" your method in solving this type of problem. I have estimated with LS method for the starting values, but the problem appears when I come to LogL. When I type:
@LOGL LOGL1
UD = LOGLOANS-ALPHA(1)-ALPHA(2)*LOGGDP-ALPHA(3)*GDPGAP-ALPHA(4)*INFLATION-ALPHA(5)*LRATELVL
US = LOGLOANS-BETA(1)-BETA(2)*LOGGDP-BETA(3)*LOGEQANDDEP-BETA(4)*DIFFRATES
LOGL1 = -LOG(2*3.14159265358979) -LOG(SIGMA(1)) -LOG(SIGMA(2)) - UD^2/SIGMA(1)^2/2 -US^2/SIGMA(2)^2/2
The following problem appears:
"5 is not a valid index for vector-series-coefficient ALPHA in UD=LOGLOANS-ALPHA(1)-ALPHA(2)*......."
The same goes for:
"4 is not a valid index for vector-series-coefficient ALPHA in US=LOGLOANS-BETA(1)-BETA(2)*......."
I would really appreciate if you can give me a piece of advice on that.
Thanks in advance!
Best regards,
Anna
I have a disequilibrium model for the loans market (Demand and Supply). Literature suggested to use ML. I have found a program called diseq1.prg in your sample programs which is almost the one I needed. Therefore, I have "copied" your method in solving this type of problem. I have estimated with LS method for the starting values, but the problem appears when I come to LogL. When I type:
@LOGL LOGL1
UD = LOGLOANS-ALPHA(1)-ALPHA(2)*LOGGDP-ALPHA(3)*GDPGAP-ALPHA(4)*INFLATION-ALPHA(5)*LRATELVL
US = LOGLOANS-BETA(1)-BETA(2)*LOGGDP-BETA(3)*LOGEQANDDEP-BETA(4)*DIFFRATES
LOGL1 = -LOG(2*3.14159265358979) -LOG(SIGMA(1)) -LOG(SIGMA(2)) - UD^2/SIGMA(1)^2/2 -US^2/SIGMA(2)^2/2
The following problem appears:
"5 is not a valid index for vector-series-coefficient ALPHA in UD=LOGLOANS-ALPHA(1)-ALPHA(2)*......."
The same goes for:
"4 is not a valid index for vector-series-coefficient ALPHA in US=LOGLOANS-BETA(1)-BETA(2)*......."
I would really appreciate if you can give me a piece of advice on that.
Thanks in advance!
Best regards,
Anna