Command Reference : Function Reference : Function Reference: P
  
 
@pagesmplidx
Index vector of observations in the current sample.
Syntax: @pagesmplidx
Return: vector
Returns a vector containing the index values of the observations in the current sample in the active workfile page.
Examples
wfcreate(wf=awf) a 2001 2024
smpl 2002 2003 2010 2011
creates a workfile containing annual observations from 2001 to 2024, then sets the sample to contain observations from 2002–2003 and 2010–2011. There are 24 observations in this workfile which may be identified by index values 1 to 24.
vector ids = @pagesmplidx
creates a vector containing the values {2, 3, 10, 11} corresponding to the index values of the sample observations.
Cross-references
See also smpl, @pageidx, @pageinidx.