CSPLAN
Writes a complex samples plan: a sampling plan for CSSELECT or an analysis plan for the CS procedures.
Syntax
Section titled “Syntax”CSPLAN SAMPLE /PLAN FILE='file.csplan' [/PLANVARS INPUTWEIGHT=w] /DESIGN [STRATA=varlist] [CLUSTER=varlist] /METHOD TYPE=method /SIZE VALUE=n|VARIABLE=var | /RATE VALUE=p|VARIABLE=var [MINSIZE=k] [MAXSIZE=k] [/MOS VARIABLE=var] [/DESIGN … one block per further stage].CSPLAN ANALYSIS /PLAN FILE='file.csaplan' /PLANVARS ANALYSISWEIGHT=w [/SRSESTIMATOR TYPE=WOR|WR] /DESIGN [STRATA=varlist] [CLUSTER=varlist] [/ESTIMATOR TYPE=WR|EQUAL_WOR] [/POPSIZE VALUE=N|VARIABLE=var | /INCLPROB VALUE=f|VARIABLE=var] [/DESIGN … per further stage].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | no |
| Subcommands | /DESIGN, /ESTIMATOR, /INCLPROB, /METHOD, /MOS, /PLAN, /PLANVARS, /POPSIZE, /PRINT, /RATE, /SIZE, /SRSESTIMATOR, /STAGEVARS |
| Menu | Analyze ▸ Complex Samples |
Specifications
Section titled “Specifications”- DESIGN: starts a stage; STRATA and CLUSTER variables of that stage
- METHOD: TYPE=SIMPLE_WOR, SIMPLE_WR, SIMPLE_SYSTEMATIC, PPS_WOR (= PPS_BREWER), PPS_SAMPFORD, PPS_SYSTEMATIC or PPS_WR
- SIZE / RATE: units per stratum, or a proportion of them (rounded, bounded by MINSIZE and MAXSIZE)
- MOS: measure of size for PPS methods, constant within each cluster
- PLANVARS: ANALYSISWEIGHT (analysis plans) or INPUTWEIGHT, a prior weight carried into the sample
- ESTIMATOR: first stage only: WR (no finite population correction) or EQUAL_WOR
- POPSIZE / INCLPROB: finite population correction per stage: population sizes or sampling fractions
- SRSESTIMATOR: the simple random sample that design effects compare with: WOR (default) or WR
Examples
Section titled “Examples”CSPLAN ANALYSIS /PLAN FILE='survey.csaplan' /PLANVARS ANALYSISWEIGHT=wt /DESIGN STRATA=region CLUSTER=psu /ESTIMATOR TYPE=WR.CSPLAN SAMPLE /PLAN FILE='s.csplan' /DESIGN STRATA=region CLUSTER=school /METHOD TYPE=PPS_WOR /SIZE VALUE=4 /MOS VARIABLE=enrol /DESIGN /METHOD TYPE=SIMPLE_WOR /SIZE VALUE=5.- Plans are JSON files. UNEQUAL_WOR (joint inclusion probabilities) and the Chromy and Murthy methods are not available; WR is the usual approximation for PPS without-replacement designs.
- Later stages contribute to the variance only below without-replacement stages.
- /ESTIMATOR TYPE=UNEQUAL_WOR needs /INCLPROB VARIABLE=var and uses the Sen–Yates–Grundy variance with Hartley–Rao joint inclusion probabilities.
Related
Section titled “Related”CSSELECT, CSDESCRIPTIVES, CSTABULATE, CSGLM
Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.