Newbies Bizo Posted April 6, 2005 Newbies Posted April 6, 2005 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!!!
Søren Dyhr Posted April 6, 2005 Posted April 6, 2005 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
Newbies Bizo Posted April 6, 2005 Author Newbies Posted April 6, 2005 Great!!! You've made my day, thank you!!! Best regards from Brazil
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now