Hello all,
I have a variable (let's say a variable X) which has negative and positive values. Problem: I want to make a variable Y which is the numerical value of X (all values are positive). I guess it is possible to use the genr-function to do the converting, i.e. Genr Y = ???? -- but how do we do it?
Regards,
T.L.
Convert values to numerical values
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13317
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Convert values to numerical values
Not sure on your terminology - negative numbers are still "numerical".
But perhaps you want the @abs function?
But perhaps you want the @abs function?
Code: Select all
series Y = @abs(X)
Follow us on Twitter @IHSEViews
Re: Convert values to numerical values
Thanks Gareth -- problem solved. You understood me correctly. I meant "absolute value" :-)
Regrads,
T.L.
Regrads,
T.L.
Who is online
Users browsing this forum: Google [Bot] and 25 guests