Object Reference : Object View and Procedure Reference : Coef
  
Coef
 
clearhist
coef
display
displayname
fill
label
olepush
read
setattr
setformat
setindent
setjust
setwidth
sheet
stats
write
Coefficient vector. Coefficients are used to represent the parameters of equations and systems.
Coef Declaration
coef declare coefficient vector.
There are two ways to create a coef. First, enter the coef keyword, followed by a name to be given to the coefficient vector. The dimension of the coef may be provided in parentheses after the keyword:
coef alpha
coef(10) beta
If no dimension is provided, the resulting coef will contain a single element.
You may also combine a declaration with an assignment statement. If you do not provide an explicit assignment statement, a new coef vector will be initialized to zero.
See also param for information on initializing coefficients, and the entries for each of the estimation objects (Equation, Logl, Pool, Sspace, System, and Var) for additional methods of accessing coefficients.
Coef Views
display display table, graph, or spool in object window.
label label view.
sheet spreadsheet.
stats descriptive statistics.
Coef Graph Views
Graph creation views are discussed in detail in “Graph Creation Command Summary”.
area area graph.
bar bar graph.
boxplot boxplot graph.
distplot distribution graph.
dot dot plot graph.
line line graph.
qqplot quantile-quantile graph.
seasplot seasonal line graph.
spike spike graph.
Coef Procs
clearhist clear the contents of the history attribute.
displayname set display name.
fill fill the elements of the coefficient vector.
olepush push updates to OLE linked objects in open applications .
read import data into coefficient vector.
setattr set the value of an object attribute .
setformat set the display format for the coefficient vector spreadsheet.
setindent set the indentation for the coefficient spreadsheet.
setjust set the justification for the coefficient spreadsheet.
setwidth set the column width for the coefficient spreadsheet.
write export data from coefficient vector.
Coef Data Members
@attr(“arg”) string containing the value of the arg attribute, where the argument is specified as a quoted string.
@description string containing the Coef object’s description (if available).
@detailedtype string describing the object type: “COEF”.
@displayname string containing the Coef object’s display name. If the Coef has no display name set, the name is returned.
@name string containing the Coef object’s name.
@remarks string containing the Coef object’s remarks (if available).
@type string describing the object type: “COEF”.
@units string containing the Coef object’s units description (if available).
@updatetime string representation of the time and date at which the Coef was last updated.
(i) i-th element of the coefficient vector. Simply append “(i)” to the coef name (without a “.”).
Coef Examples
The coefficient vector declaration:
coef(10) coef1=3
creates a 10 element coefficient vector COEF1, and initializes all values to 3.
Suppose MAT1 is a matrix, and VEC1 is a 20 element vector. Then:
coef mycoef1=coef1
coef mycoef2=mat1
coef mycoef3=vec1
create, size, and initialize the coefficient vectors MYCOEF1, MYCOEF2 and MYCOEF3.
Coefficient elements may be referred to by an explicit index. For example:
vector(10) mm=beta(10)
scalar shape=beta(7)
fills the vector MM with the value of the tenth element of BETA, and assigns the seventh value of BETA to the scalar SHAPE.