Scalar
Scalar (single number). A scalar holds a single numeric value. Scalar values may be used in standard EViews expressions in place of numeric values.
Scalar Declaration
To declare a scalar object, use the keyword scalar, followed by a name, an “=” sign and a scalar expression or value.
Scalar Views
sheet spreadsheet view of the scalar.
Scalar Procs
clearhist clear the contents of the history attribute.
copy creates a copy of the scalar.
olepush push updates to OLE linked objects in open applications.
setattr set the value of an object attribute.
Scalar 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 Scalar object’s description (if available).
@detailedtype string with the object type: “SCALAR”.
@displayname string containing the Scalar object’s display name. If the Scalar has no display name set, the name is returned.
@name string containing the Scalar object’s name.
@remarks string containing the Scalar object’s remarks (if available).
@type string with the object type: “SCALAR”.
@updatetime string representation of the time and date at which the Scalar was last updated.
Scalar Examples
You can declare a scalar and examine its contents in the status line:
scalar pi=3.14159
scalar shape=beta(7)
show shape
or you can declare a scalar and use it in an expression:
scalar inner=@transpose(mydata)*mydata
series x=1/@sqrt(inner)*y