What information can I reference from a command?

For questions regarding programming in the EViews programming language.

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

bobreednz
Posts: 8
Joined: Mon Jul 15, 2013 5:13 pm

What information can I reference from a command?

Postby bobreednz » Tue Jul 22, 2014 4:54 pm

Hi, I know if I run a command, like ls, I can extract certain information for later use. For example, in the command below, I extract the tstat from the trend term.

ls y c @trend
scalar bob = @tstat(2)

My question is: Is there any way of knowing after ANY command, what all information is available for extraction, and how it can be referenced?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: What information can I reference from a command?

Postby EViews Gareth » Tue Jul 22, 2014 7:51 pm

What you're actually talking about are object data members. When you use the LS command you create an equation object. Then you can reference any of the equation's data members.

A list of each object's data members are given at the start of that objects section in Chapter 1 of the Object Reference (PDF available from the help menu).

bobreednz
Posts: 8
Joined: Mon Jul 15, 2013 5:13 pm

Re: What information can I reference from a command?

Postby bobreednz » Tue Jul 22, 2014 8:18 pm

I am very sorry, but I went to the Object Reference pdf and did not see any mention of the object members nor how I could reference them. I am uploading the screen shot from the first page on "ls" in the Object Reference pdf. I don't see any mention of, for example, "@tstat()" which would let me know what members were available and how to reference them. I'd greatly appreciate additional help. :-)
Object reference (ls).docx
Screen shot from Object Reference (ls) pdf.
(950.14 KiB) Downloaded 195 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: What information can I reference from a command?

Postby EViews Gareth » Tue Jul 22, 2014 8:39 pm

Go to the start of the equation section. The object you created is an equation object.

bobreednz
Posts: 8
Joined: Mon Jul 15, 2013 5:13 pm

Re: What information can I reference from a command?

Postby bobreednz » Tue Jul 22, 2014 8:57 pm

Got it. So as I understand it after reading about the object members, I don't think there's any way to extract specific test results from the uroot command (such as the sample t-statistic or prob value), which is associated with a series object. The only way to do this would be run it as a LS equation and get the information from that. Is that correct?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: What information can I reference from a command?

Postby EViews Gareth » Tue Jul 22, 2014 9:22 pm


bobreednz
Posts: 8
Joined: Mon Jul 15, 2013 5:13 pm

Re: What information can I reference from a command?

Postby bobreednz » Tue Jul 22, 2014 9:54 pm

Thank you very much. This has been very helpful. :D


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests