Scalars

Scalar objects are different from series and groups in that they hold a single number instead of data for each observation in the sample. Scalars are created by commands of the form:

scalar scalar_name = number

where you assign a number to the scalar name. The number may be an expression or special functions that return a scalar.

To examine the contents of a scalar, you may enter the command show, followed by the name of the scalar. For example:

scalar logl1 = eq1.@logl

show logl1

stores the log likelihood value of the equation object named EQ1 in a scalar named LOGL1, and displays the scalar window.