Object Reference : Object View and Procedure Reference : Sample
  
Sample
 
clearhist
clearremarks
copy
display
displayname
label
olepush
sample
set
setattr
spec
Sample of observations. Description of a set of observations to be used in operations.
Sample Declaration
sample declare a sample object.
To declare a sample object, use the keyword sample, followed by a name and a sample string:
sample mysample 1960:1 1990:4
sample altsample 120 170 300 1000 if x>0
Sample Views
display display table, graph, or spool in object window.
label label information for the sample.
spec display sample specification information.
Sample Procs
clearhist clear the contents of the history attribute.
clearremarks clear the contents of the remarks attribute.
copy creates a copy of the sample.
displayname set display name.
olepush push updates to OLE linked objects in open applications.
set reset the sample range.
setattr set the value of an object attribute.
Sample Data Members
String values
@attr("arg") string containing the value of the arg attribute, where the argument is specified as a quoted string.
@description string containing the Sample object’s description (if available).
@detailedtype string with the object type: “SAMPLE”.
@displayname string containing the Sample object’s display name. If the Sample has no display name set, the name is returned.
@name string containing the Sample object’s name.
@remarks string containing the Sample object’s remarks (if available).
@type string with the object type: “SAMPLE”.
@updatetime string representation of the time and date at which the Sample was last updated.
Sample Example
To change the observations in a sample object, you can use the set proc:
mysample.set 1960:1 1980:4 if y>0
sample thesamp 1 10 20 30 40 60 if x>0
thesamp.set @all
To set the current sample to use a sample, enter a smpl statement, followed by the name of the sample object:
smpl mysample
equation eq1.ls y x c