Questions about complex sampling error message using SPSS16

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Questions about complex sampling error message using SPSS16

szhao003
Hi,
I have attempted to run a complex sampling procedure. However, SPSS has always given me an error message "Subcommand  Size: A valid category list must be specified for matrix." I understood the message and tried different ways to manipulate the syntax. However, it was useless. I am stuck with the error message now. I wonder if anyone could help me solve this issue. The syntax is written below. Thanks so much!
(PS: The file path is faked. So if you find something incorrect, please ignore it).
GET FILE = 'C:\Users\HPUSD-MERGED 2011-2013 CST - Match on Disabililty.sav'.
ALTER TYPE
    CSTPLELA2011 (F1.0).

FREQUENCIES VARIABLES = EnglishProficiency2012 NSLP2012 Disability2012 CSTPLELA2011
    /ORDER = ANALYSIS.

*Recode EnglishProficiency NSLP.
STRING ELStatus2012(A2).
RECODE EnglishProficiency2012 ( "EL" = "EL") ( "EO" = "EO") ("RFEP" = "EO")("IFEP" = "EO") INTO ELStatus2012.
RECODE CSTPLELA2011 (1 = 1) (2 = 1) (3 = 2) (4 = 3) (5 = 3) INTO PriorCSTPLELA.

CROSSTABS
   /TABLE =ELStatus2012 BY NSLP2012 BY PriorCSTPLELA BY Group
   /FORMAT = AVALUE
   /CELLS = COUNT ROW
   /COUNT = ROUND CELL.

RECODE Group (1 = 1) (0 = 2).

SELECT IF (NOT(PriorCSTPLELA = 3 AND ELStatus2012 = "EL" AND NSLP2012 = "Y")).

*Match samples on PriorCSTPLELA.
CSPLAN SAMPLE
    /PLAN FILE = 'C:\Users\HPUSD-MERGED 2011-2013 CST -Match All with PriorCSTELA.csplan'
    /PLANVARS SAMPLEWEIGHT=SampleWeight_Final_
    /PRINT PLAN MATRIX
    /DESIGN  STRATA= Group  PriorCSTPLELA  ELStatus2012  NSLP2012
    /METHOD TYPE= SIMPLE_WOR  ESTIMATION= WR
    /SIZE MATRIX= Group  PriorCSTPLELA  ELStatus2012  NSLP2012;
1.00 1 "EL" "N" 2; 1.00 1 "EL" "Y" 31;1.00 1 "EO" "N" 45; 1.00 1 "EO" "Y" 57; 1.00 2 "EL" "N" 1; 1.00 2 "EL" "Y" 12; 1.00 2 "EO" "N" 202; 1.00 2 "EO" "Y" 149; 1.00 3 "EL" "N" 1; 1.00 3 "EL" "Y" 0; 1.00 3 "EO" "N" 650; 1.00 3 "EO" "Y" 260;
2.00 1 "EL" "N" 2; 2.00 1 "EL" "Y" 31;2.00 1 "EO" "N" 45; 2.00 1 "EO" "Y" 57; 2.00 2 "EL" "N" 1; 2.00 2 "EL" "Y" 12; 2.00 2 "EO" "N" 202; 2.00 2 "EO" "Y" 149; 2.00 3 "EL" "N" 1; 2.00 3 "EL" "Y" 0; 2.00 3 "EO" "N" 650; 2.00 3 "EO" "Y" 260
      /STAGEVARS
     INCLPROB( InclusionProbability_1_ )
     CUMWEIGHT( SampleWeightCumulative_1_ ).

CSSELECT
    /PLAN FILE= 'C:\Users\HPUSD-MERGED 2011-2013 CST -Match All with PriorCSTELA.csplan'
   /CRITERIA STAGES = 1 SEED = RANDOM
   /CLASSMISSING EXCLUDE
   /DATA RENAMEVARS
   /SAMPLEFILE OUTFILE =  'C:\Users\HPUSD-MERGED 2011-2013 CST -Match All with PriorCSTELA.sav'
   /PRINT SELECTION.