log1 is not defined or an illegal command

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

brake
Posts: 3
Joined: Fri Dec 09, 2011 7:19 am

log1 is not defined or an illegal command

Postby brake » Fri Dec 09, 2011 7:27 am

Hi, I'm trying to run the following command but I keep getting this message " log1 is not defined or an illegal command"
the command is:

@logl log1
log1=ni*log(1-@LOGIT(-(C(1) + C(2)*log(RUN))))+mi*log(1-(1-@LOGIT(-(C(1)+ C(2)*log(RUN)))))

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: log1 is not defined or an illegal command

Postby trubador » Fri Dec 09, 2011 7:46 am

It seems you are trying to run it from the command line. However, you can only use it with LogL object (Object/New Object/LogL), which is EViews' tool to specify and solve maximum likelihood problems. If you only need the log likelihood value, then simply estimate your model via Equation Estimation and retrieve it from the output.

brake
Posts: 3
Joined: Fri Dec 09, 2011 7:19 am

Re: log1 is not defined or an illegal command

Postby brake » Mon Dec 12, 2011 6:57 am

Many thanx 4 ur help. it's work now

yasir6028
Posts: 1
Joined: Sun Mar 31, 2013 6:34 pm

Re: log1 is not defined or an illegal command

Postby yasir6028 » Sun Mar 31, 2013 6:39 pm

hi brake,
can you help me to run this command:
@logl log1
log1=ni*log(1-@LOGIT(-(C(1) + C(2)*log(RUN))))+mi*log(1-(1-@LOGIT(-(C(1)
+ C(2)*log(RUN)))))

i am unable to understand ni and mi........
please help me.....


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests