Hi there, I have a question. When running a regression, a simpler one, y c x, how do you save just one of the coefficients in a table? not the alpha coefficient but the beta one. I want to save this coefficient in an independent table with just one number, the beta coefficient.
Thanks
how to save a regression coefficient
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
Re: how to save a regression coefficient
Hello:
I think I know how to do this in Eviews 10. Assuming your equation is Y = C + betaX
I hope this helps
I think I know how to do this in Eviews 10. Assuming your equation is Y = C + betaX
Code: Select all
equation model1.ls y c x 'this creates the equation
TableName(1,1) = model1.@coef(2) 'this saves the beta estimate in your table
I hope this helps
-
- Posts: 27
- Joined: Mon Mar 30, 2020 5:45 pm
Re: how to save a regression coefficient
Hi, thank you for your response, when running the first part of the code (equation model1.ls y c x) no problem, but when running the second part of the code (mytable(1,1)=model1.@coef(2)), says mytable is not defined or is an illegal command in "mytable(1,1)=model1.@coef(2)". I tried changing the name but same results.
-
- Posts: 27
- Joined: Mon Mar 30, 2020 5:45 pm
Re: how to save a regression coefficient
I fixed it, I needed to add this code: table(1,1) table name, before the tablename(1,1)=modela.@coef(2).
Thank you very much
Thank you very much
Who is online
Users browsing this forum: No registered users and 29 guests