Page 2 of 2

Re: Programming a table

Posted: Thu Feb 01, 2018 2:50 pm
by miorinnovo
Gareth, you, Sir, are the man.

Re: Programming a table

Posted: Thu Feb 01, 2018 3:14 pm
by EViews Gareth
Beer donations can be sent to support@eviews.com :D

Re: Programming a table

Posted: Fri Feb 02, 2018 2:20 pm
by miorinnovo
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?

Re: Programming a table

Posted: Fri Feb 02, 2018 2:40 pm
by EViews Gareth
Don't follow.

Re: Programming a table

Posted: Fri Feb 02, 2018 3:05 pm
by miorinnovo
Here's the code

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

Re: Programming a table

Posted: Fri Feb 02, 2018 3:16 pm
by EViews Gareth

Code: Select all

{%table}(!row,1) = %names

Re: Programming a table

Posted: Fri Feb 02, 2018 3:22 pm
by miorinnovo
ok, that one hurt.
thanks

Re: Programming a table

Posted: Mon Jan 28, 2019 2:23 pm
by JimForest
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.

Re: Programming a table

Posted: Mon Jan 28, 2019 6:17 pm
by EViews Gareth

Code: Select all

freeze(equation1) eq6.ls