Programming a table
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Programming a table
Gareth, you, Sir, are the man.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Programming a table
Beer donations can be sent to support@eviews.com
Follow us on Twitter @IHSEViews
-
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Programming a table
Here's another table question.
I was hoping to have the first column in my table be the names in my for string. But if I put {%string} in brackets to tell the table to read it It just displays {%string}. Is there a workaround for this?
I was hoping to have the first column in my table be the names in my for string. But if I put {%string} in brackets to tell the table to read it It just displays {%string}. Is there a workaround for this?
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
-
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Programming a table
Here's the code
So I was hoping to get the first column to be rows that say "a" then next row says "b" etc. But they all just actually say {%names}.
also I want the second column to give me the mean of a{%somethingelse}
Thanks
Code: Select all
for %names a b c d e f
!row = !row + 1
{%table}(!row,1) = "{%names}"
{%table}(!row,2) = @mean({%names}{%somethingelse})
So I was hoping to get the first column to be rows that say "a" then next row says "b" etc. But they all just actually say {%names}.
also I want the second column to give me the mean of a{%somethingelse}
Thanks
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
-
- Posts: 199
- Joined: Sun Mar 01, 2015 5:01 pm
Re: Programming a table
ok, that one hurt.
thanks
thanks
Re: Programming a table
I want to freeze and rename, can it be done in two lines?
equation eq6.ls(optmethod=opg) depvar c
freeze eq6.ls equation1
(and rename it as a table called equation1)
When I run above it won't accept the name. I get an error when I run RENAME in a separate line.
I am sure this is very simple.
equation eq6.ls(optmethod=opg) depvar c
freeze eq6.ls equation1
(and rename it as a table called equation1)
When I run above it won't accept the name. I get an error when I run RENAME in a separate line.
I am sure this is very simple.
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Who is online
Users browsing this forum: No registered users and 41 guests