Hi all,
I need to estimate an 11 variable translog function. Translog functions involve a sqaured term for each of the variables aswell as including all possible combinations of interaction terms. Can Eviews automatically generate these for me? - as is going to take me a long long time to write them out manually.
Cheers,
Andrew.
Automatically Generate Interaction and Quadratic Terms
Moderators: EViews Gareth, EViews Moderator
Re: Automatically Generate Interaction and Quadratic Terms
I am now trying to get Eviews and Matlab to talk. So I can use Matlab code to create the estimations i need.
In Matlab I have a string variable defined as "regression" which equals 'read c d_male'. I then run the following Eview code:
xopen(type=m)
xrun "run d:\eviews.m"
xget regression
xclose
Eviews then gets the variable successfully from matlab, and stores it in an SVector. How do I now use this SVector to estimation the equation "read c d_male"?
In Matlab I have a string variable defined as "regression" which equals 'read c d_male'. I then run the following Eview code:
xopen(type=m)
xrun "run d:\eviews.m"
xget regression
xclose
Eviews then gets the variable successfully from matlab, and stores it in an SVector. How do I now use this SVector to estimation the equation "read c d_male"?
Re: Automatically Generate Interaction and Quadratic Terms
Ok ive got it to work now however, is there a max string length or something? - because when I run the regression it compains about missing parenthesis because it cuts the string down.....
Re: Automatically Generate Interaction and Quadratic Terms
The answer is yes, once i cut the big string into smaller parts the OLS regression worked, cheers.
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3796
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Automatically Generate Interaction and Quadratic Terms
Take a look at Options/General options/Series and Alphas/Alpha truncation and see if changing the value there helps.
-
EViews Steve
- EViews Developer
- Posts: 844
- Joined: Tue Sep 16, 2008 3:00 pm
- Location: Irvine, CA
Re: Automatically Generate Interaction and Quadratic Terms
I've taken a look again at the EViews code that is used to talk to MATLAB and I don't think their is a limit to the size of a string that can be retrieved. There may be issues with retrieving a string that contains newline characters in it (\n) because of the ambiguity of how MATLAB returns matrices (a 2x2 matrix is returned using spaces and newline characters as column and row delimiters). Or perhaps MATLAB itself is limiting the max size...
Who is online
Users browsing this forum: No registered users and 2 guests
