Let me begin by saying that the printview option of model objects introduced in EViews 9.5 is an excellent new feature!
The suggestion here comes out of my observation that scalar objects are not replaced by their numerical value when using the printview option.
On the back of that observation, would it be possible to introduce replacement for scalar objects in the printview? Also, how about for vector objects? They seem to get replaced depending on how the equation they appear in are appended to the model.
The sample code below demonstrates. Bear in mind that I may not have covered all of the possible combinations. Could this be investigated?
Two final points.
1) I'd like to bring to the attention that "mod.printview" does not seem to work when using the command line.
2) What is your advice on the best practice for creating (programming) a model that contains both estimated and calibrated coefficients?
Thanks!
Graeme
Sample Code
Code: Select all
' Create workfile
wfcreate a 2000 2010
' Define scalar, coef, and vector objects
scalar COEF1 = 1.0
coef(2) COEF2
vector(2) COEF3
COEF3.fill 0.0, 1.0
' Create some toy data
series W = nrnd + @trend
series Y = nrnd + @trend
series X = nrnd + @trend
series Z = nrnd + @trend
' Create equations using different combinations of objects
equation EQ01.ls Y = c(1) + COEF1 * X
equation EQ02.ls Z = COEF2(1) + COEF2(2) * X
equation EQ03.ls W = COEF3(1) + COEF3(2) * X + c(1)
' Set up a model
model mod
mod.append :EQ01 ' COEF1 not replaced
mod.append :EQ02 ' COEF2 is replaced
mod.append :EQ03 ' COEF3 is replaced
mod.append X = COEF3(1) + COEF3(2) * X(-1) ' COEF3 is not replaced
' Inspect the printview
mod.printview(idents, signif=3) ' Does not work