transform data into log

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

coelhoindy
Posts: 6
Joined: Fri Sep 25, 2009 7:52 am

transform data into log

Postby coelhoindy » Fri Sep 25, 2009 8:14 am

hi,

I want to transform my variable into log but it gives me the following messageL

String argument passed to numeric log function

And then if I try to run a regression with the variable I get this message: syntax error.

if I include more than two variables, I get this message: alpha series in specification -net_income @ expand can convert to catagorical dummies

anyone can help?

indy

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

Re: transform data into log

Postby EViews Gareth » Fri Sep 25, 2009 8:52 am

The log function only works on numbers. You've passed in a string variable. EViews cannot take the log of strings.

coelhoindy
Posts: 6
Joined: Fri Sep 25, 2009 7:52 am

Re: transform data into log

Postby coelhoindy » Fri Sep 25, 2009 8:58 am

how to eliminate a string variable?

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

Re: transform data into log

Postby EViews Gareth » Fri Sep 25, 2009 9:08 am

Assuming your string variable contains numbers stored as a string (possible, but unlikely), you can create a series with something like:

Code: Select all

series myseries = @val(myalpha)
where myalpha is the name of your alpha/string series.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests