Create variables functions of parameters to estimate
Posted: Mon Jul 09, 2012 6:27 am
Dear all,
I am new to Eviews programming and I have a relatively simple question.
I want to write a program to estimate a nonlinear model but before writing the specification of the model (that will be passed to "equation eq1.ls ...") I would like to create variables which are functions of the parameters that i want to estimate.
A stylized example is the following:
genr x1 = @abs(c(1)*x)
genr z1 = @exp(c(2)*z)
equation eq1.ls y = z1*x1 + (1-z1)*c(2)*y(-1)
Thanks a lot for any suggestion!
I am new to Eviews programming and I have a relatively simple question.
I want to write a program to estimate a nonlinear model but before writing the specification of the model (that will be passed to "equation eq1.ls ...") I would like to create variables which are functions of the parameters that i want to estimate.
A stylized example is the following:
genr x1 = @abs(c(1)*x)
genr z1 = @exp(c(2)*z)
equation eq1.ls y = z1*x1 + (1-z1)*c(2)*y(-1)
Thanks a lot for any suggestion!