setformat for negative values

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

Katjes
Posts: 56
Joined: Thu Oct 02, 2008 5:46 am

setformat for negative values

Postby Katjes » Tue Jun 09, 2009 3:42 pm

I saved a correlation matrix for group grp in a table corr_grp
freeze(corr_grp) grp.cor
Now I want to optimise by reducing the decimals of 2. Everthing is fine if the correlation is positive, but for negative values the correlation is put in brackets.
corr_grp.setformat( @all) f(.2)
How can I change this, so that a (0.34) is shown as -0.34.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13319
Joined: Tue Sep 16, 2008 5:38 pm

Re: setformat for negative values

Postby EViews Gareth » Tue Jun 09, 2009 3:50 pm

If you don't want the negatives in parenthesis, why did you use them in the format choice?

Surely you just want
corr_grp.setformat(@all) f.2
Follow us on Twitter @IHSEViews

Katjes
Posts: 56
Joined: Thu Oct 02, 2008 5:46 am

Re: setformat for negative values

Postby Katjes » Wed Jun 10, 2009 5:48 am

Ok, thanks, but if the numbers are only positive, then I got no brackets using my command above, hence I thought that I used the right command.
But I will skip the brackets! Thanks again!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 10 guests