Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Recoding various values into one

Featured Replies

  • Newbies

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!!!

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

  • Author
  • Newbies

Great!!!

You've made my day, thank you!!!

Best regards from Brazil

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.