fixed decimals in matrix

For questions regarding programming in the EViews programming language.

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

remuct
Posts: 37
Joined: Fri May 12, 2017 6:47 am

fixed decimals in matrix

Postby remuct » Thu Feb 27, 2025 3:56 am

Hello
I am filling a matrix with column vectors using colplace, is there a way to limit the number of decimals in a given column? Setcell allows this by specifying the fixed decimal as the last argument, but this does not work with colplace.
Thank you

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

Re: fixed decimals in matrix

Postby EViews Gareth » Thu Feb 27, 2025 8:56 am

Display or actual?

remuct
Posts: 37
Joined: Fri May 12, 2017 6:47 am

Re: fixed decimals in matrix

Postby remuct » Thu Feb 27, 2025 12:26 pm

Do you mean by "actual" the values of the initial vector (possibly subject to further calculations) and by "display" the values displayed as results? If so, displayed. What I want is to display the values of the column vector in a matrix with fixed decimals.

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

Re: fixed decimals in matrix

Postby EViews Gareth » Thu Feb 27, 2025 10:38 pm

Once you have the matrix filled, use setformat:

https://eviews.com/help/helpintro.html# ... 23ww175785


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests