R-squared decimals

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

R-squared decimals

Postby miorinnovo » Mon Jun 22, 2015 8:12 am

Just curious if there's a way to reduce the number of decimals in a table.

I have my setformat going in the table and it adjusts my rmses to the number of decimals i want but not for my adjusted r-squared (@rbar2) Any ideas?

Thanks

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

Re: R-squared decimals

Postby EViews Gareth » Mon Jun 22, 2015 8:17 am

We'll need more details. Setformat will do it.

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Re: R-squared decimals

Postby miorinnovo » Mon Jun 22, 2015 8:22 am

So I created a table and formatted it to 3 decimals:

table(11,4) tablename
tablename.setformat(2,2,11,4) f.3

in column 4 I have my @rbar2's but they have many decimal places..

ideas?

thanks

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

Re: R-squared decimals

Postby EViews Gareth » Mon Jun 22, 2015 9:05 am

Works for me:

Code: Select all

create u 100 series y=nrnd series x=nrnd equation eq1.ls y c x table(11,4) tablename tablename.setformat(2,2,11,4) f.3 tablename(3,4) = eq1.@rbar2 show tablename

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Re: R-squared decimals

Postby miorinnovo » Mon Jun 22, 2015 10:17 am

Thank you!

I was using:
tablename(3,4) = @str(eq1.@rbar2)
instead of your:
tablename(3,4) = eq1.@rbar2


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests