Raynald's SPSS Tools
  • Syntax
    • SPSS Syntax Home
    • Sample Syntax Library
    • Learning Syntax
    • Debugging SPSS Syntax
    • Standard Data Files
  • Macros
    • SPSS Macros — Home
    • Sample Macro Library
    • Learning Macros
    • Debugging Macros
    • Kirill's SPSS Macros Page
  • Scripts
    • SPSS Scripts — Home
    • Sample Scripts Library
    • Learning Scripts
    • The Asynchronous Problem
  • Python
    • Python Scripts Home
    • Sample Python Library
  • R
    • R Scripts — Home
    • Sample R Library
  • Resources
    • Resources Overview
    • Blog
    • Links to SPSS (and not only SPSS) resources
    • SPSS Programming and Data Management Book
  • Sitemap
  • Feedback
  • en
    • Русский
    • Español
    • Portugues
    • Deutsch
    • Français
    • Italiano
  1. Home
  2. Syntax
  3. Sample Syntax Library
  4. Flag or Select Cases

Flag or Select Cases

  • Exclude "outliers" from analysis
  • Flag cases where a given string variable contains a given word
  • Flag cases where any of a list of variables have same value
  • Flag cases meeting a certain condition as well as preceding and following case for the same person
  • Flag cases where salary is in top 95 percentile
  • Flag first and last dates (within each ID)
  • Keep only duplicate cases
  • Print frequency table of the n most (less) frequent items
  • Select cases where same letter appears twice in string
  • Select patients where drug1 was given before drug2
  • Sophisticated search in string variable
Related pages

...

Navigate from here
  • Sample Syntax Library
  • Export & Import
  • Item Analysis
  • Exclude "outliers" from analysis
  • Get random page
  • Back to top

 


 

Raynald's SPSS Tools © 2001–2025, Raynald Levesque, Anton Balabanov. Click to learn more: About the project