SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 

 View Only
Expand all | Collapse all

Complex sampling - How to sample a range rather than absolute numbers?

  • 1.  Complex sampling - How to sample a range rather than absolute numbers?

    Posted Wed January 04, 2023 01:29 PM
    Hello,

    I am having a dataset that contains pupils nested in pairs/triads of schools. I need to select 20 pupils within each pair/triad but a between at least 7 and a maximum of 13 per school.

    In theory what I want to do is this:
    CSPLAN SAMPLE
      /PLAN FILE='/survey/myfile.csplan'
      /DESIGN STAGELABEL='pairs' CLUSTER=schools 
      /METHOD TYPE=PPS_SYSTEMATIC
      /SIZE VALUE=20
      /MOS VARIABLE='sizevariable' 
      /DESIGN STAGELABEL='schools' CLUSTER=school 
      /METHOD TYPE=PPS_SYSTEMATIC
      /SIZE VALUE=7-13.​
    This obvs doesn't work as /SIZE VALUE does not accept ranges.

    Does anyone have an Idea on how to do the above? I can worst case do adjustments manually as only a handful pairs result in lower/higher numbers but fixing it in the syntax is obvs neater.

    Many Thanks in advance!
    Frederick

    ------------------------------
    Frederick
    ------------------------------

    #SPSSStatistics


  • 2.  RE: Complex sampling - How to sample a range rather than absolute numbers?

    Posted Thu January 05, 2023 02:13 PM
    Right; a range of values cannot be specified. I will let the team know that at least one user has requested an enhancement to allow range specification.

    ------------------------------
    Rick Marcantonio
    Quality Assurance
    IBM
    ------------------------------