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. Random Sampling

Random Sampling

  • Complex sampling without replacement
  • Draw without replacement (random permutation of numbers)
  • Generate random phone numbers
  • Find random pairs of cases for T-test
  • Find random pairs of cases with same characteristics
  • Flag n random cases within each subgroups
  • Get 2independent samples meeting given criteria
  • Get 2 random samples same sex age education
  • Get n independent random samples of size m from same file
  • Get random sample of x% of each stratum
  • Get random sample of N cases from each stratum
  • List of random cases id10 per line
  • Match cases on basis of propensity scores
  • Proportional sampling without replace
  • Proportional random sampling
  • Proportional sampling without replacement
  • Random sample n males and n females
  • Random samples with same age sex education
  • Random split a file in two files
  • Randomize a variable n times and keep each randomization
  • Scramble social insurance numbers
  • Select 2 cases from each group
  • Select random samples of each group
  • Split files in 2 random portions
  • Split a file into 10random groups of equal size
  • Systematic fixed sampling
  • Getting repeated sampling from same file
Related pages

...

Navigate from here
  • Sample Syntax Library
  • Outliers
  • Read, Write or Create Data
  • Complex sampling without replacement
  • Get random page
  • Back to top

 


 

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