Page 1 of 1

How to assign the size of a sample to a variable/scalar?

Posted: Wed May 03, 2017 6:01 am
by mamo
Dear Eviews team
what is the most direct approach to assign the size of a specific sample to a variable or scalar within a program?
(In the code below provided as an example, the line starting with !samplesize does not work and produces an error)
Best,
mamo

Code: Select all

wfcreate a 2001 2016 4 ' The following line gives rise to an error message !samplesize=@obs(1, "2002 2004 if crossid=3") ' Interestingly, the following line would work ' show @obs(1, "2002 2004 if crossid=3")

Re: How to assign the size of a sample to a variable/scalar?

Posted: Wed May 03, 2017 8:44 am
by EViews Gareth
=@obssmpl