Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Recoding various values into one


This topic is 7172 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I'm building a database in which I'll have to calculate a Revised Trauma Score, that takes ranges of values into one code. For example: values, for a variable called Glasgow, of 15, 14 and 13 must return a "4". Values 12, 11, 10 and 9, must return "3", an so forth. In SPSS I would use the "recode", but as a newbie in FM I'm quite lost... Can anyone help in with that? Thank you!!!

Posted

Either:

Choose ( Glasgow-1 ;1;1;1;1;2;2;2;2;3;3;3;3;4;4;4)

Or:

Div ( Glasgow ; 4 ) + 1

But the first is more flexible if say you wish to have more of "2" but less of "1" and "3" ???

--sd

This topic is 7172 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.