Object Reference : Object View and Procedure Reference : Scalar
Declare a scalar object.
The scalar command declares a scalar object and optionally assigns a value.
scalar scalar_name[=assignment]
The scalar keyword should be followed by a valid name, and optionally, by an assignment. If there is no explicit assignment, the scalar will be initialized with a value of zero.
scalar alpha
declares a scalar object named ALPHA with value zero.
equation eq1.ls res c res(-1 to -4) x1 x2
scalar lm = eq1.@regobs*eq1.@r2
show lm
runs a regression, saves the as a scalar named LM, and displays its value in the status line at the bottom of the EViews window.