why the if statement can not work?

For questions regarding programming in the EViews programming language.

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

tanghanpost
Posts: 27
Joined: Tue Dec 30, 2008 6:39 am

why the if statement can not work?

Postby tanghanpost » Wed Aug 06, 2014 6:10 am

Hi,
I found a question with the if statement in Eviews8, I don't whether i was wrong.
Use the demo data which provided by Eviews8, i try:
smpl @all if m1>372
show m1
By the command, the result should be m1 cells which greater than 372
but, with "show m1", Eviews8 show all the m1 cells, whether it > or < 372.
what wrong with the command?
Can anyone help me? Very thanks!
Tanghan
Attachments
demo.wf1
(34.29 KiB) Downloaded 409 times

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

Re: why the if statement can not work?

Postby EViews Gareth » Wed Aug 06, 2014 6:46 am

When you use "show series", it shows every observation, not just those in the current sample. Press the Smpl +/- button to change it show just those in the current sample.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests