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")