Page 1 of 1

why the if statement can not work?

Posted: Wed Aug 06, 2014 6:10 am
by tanghanpost
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

Re: why the if statement can not work?

Posted: Wed Aug 06, 2014 6:46 am
by EViews Gareth
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.