Page 1 of 1

transform data into log

Posted: Fri Sep 25, 2009 8:14 am
by coelhoindy
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

Re: transform data into log

Posted: Fri Sep 25, 2009 8:52 am
by EViews Gareth
The log function only works on numbers. You've passed in a string variable. EViews cannot take the log of strings.

Re: transform data into log

Posted: Fri Sep 25, 2009 8:58 am
by coelhoindy
how to eliminate a string variable?

Re: transform data into log

Posted: Fri Sep 25, 2009 9:08 am
by EViews Gareth
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.