🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 04-05-2012 11:00 PM
(48916 views)
I have a variable, idiorisk which is in positive and negative values.
How do i calculate the absolute value of idiorisk?
is it
absolute_IV=abs(IV);
thanks
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
yes. example -- see the ABS function documentation.
data have;
input var1;
var2=abs(var1);
cards;
1
-2
3
-4
;
proc print;run;
obs var1 var2 1 1 1 2 -2 2 3 3 3 4 -4 4
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
yes. example -- see the ABS function documentation.
data have;
input var1;
var2=abs(var1);
cards;
1
-2
3
-4
;
proc print;run;
obs var1 var2 1 1 1 2 -2 2 3 3 3 4 -4 4