Hi
I need to store the intercept/constant for many (!) (CAPM-like) OLS regressions in a table/text.
How should I program such thing...? I have no experience with programming so please answer in ‘dummy-language :D ’
Thanks a lot!
storing alpha/intercept/constant
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13600
- Joined: Tue Sep 16, 2008 5:38 pm
Re: storing alpha/intercept/constant
You can retrieve any coefficient from an equation by using the @coef data member. Assuming you have the constant as the first coefficient in your regression, you would use equation_name.@coef(1) where equation_name is the name of your regression. You can then store that into a table. Something like:
which would put the intercept from myequation into the first row, first column of a table called mytable
Code: Select all
table mytable
mytable(1,1) = myequation.@coef(1)
Re: storing alpha/intercept/constant
Thanks so much!
With your help I also found out to make it a loop and store every alpha (500) below eachother :) Many thanks for your quick response...
With your help I also found out to make it a loop and store every alpha (500) below eachother :) Many thanks for your quick response...
Who is online
Users browsing this forum: No registered users and 0 guests
