percentage

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

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

lana
Posts: 22
Joined: Thu Mar 05, 2015 12:24 am

percentage

Postby lana » Tue Mar 10, 2015 4:18 am

Hello,
I have to calculate a ratio and I wonder if I could do this with eviews. this is an example :
ratio = (rooa * 50% + rfff*100%)/(frghjh *12% + efsdgfs* 65%)
I tried with GENR ratio = ()/()
between brackets I put the variables but it didn't work

can I do this or I should do it in EXCEL ONLY ?
thank you

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: percentage

Postby trubador » Tue Mar 10, 2015 4:44 am

EViews has its own built-in functions just as Excel does. You should look up for the proper commands and correct syntax from the help files first.

And you should also provide more information in such cases. For instance, what are rooa, rfff, frghjh, efsdgfs or how do you decide that it does not work, is there an error message, and if so what does it say, etc.

If all these variables are series, then the following should work:

Code: Select all

genr ratio = (0.5*rooa + rfff) / (0.12*frghjh + 0.65*efsdgfs)

lana
Posts: 22
Joined: Thu Mar 05, 2015 12:24 am

Re: percentage

Postby lana » Tue Mar 10, 2015 6:09 am

sorry for the missing details and thank you for help


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests