Declare a coefficient (column) vector.
Syntax
coef(n) coef_name
Follow the coef keyword with the number of coefficients in parentheses, and a name for the object. If you omit the number of coefficients, EViews will create a vector of length 1.
Examples
coef(2) slope
ls lwage = c(1)+slope(1)*edu+slope(2)*edu^2
The first line declares a coef object of length 2 named SLOPE. The second line estimates a least squares regression and stores the estimated slope coefficients in SLOPE.
arch(2,2) sp500 c
coef beta = c
coef(6) beta
The first line estimates a GARCH(2,2) model using the default coef vector C (note that the “C” in an equation specification refers to the constant term, a series of ones.) The second line declares a coef object named BETA and copies the contents of C to BETA (the “C” in the assignment statement refers to the default coef vector). The third line resizes BETA to “chop off” all elements except the first six. Note that since EViews stores coefficients with equations for later use, you will generally not need to perform this operation to save your coefficient vectors.
Cross-references