CSSELECT
Draws a probability sample from the active dataset according to a CSPLAN sampling plan.
Syntax
Section titled “Syntax”CSSELECT /PLAN FILE='file.csplan' [/CRITERIA STAGES=k SEED=n] [/CLASSMISSING EXCLUDE|INCLUDE] [/DATA SELECTED=FILTER|DELETE] [/ANALYSISPLAN FILE='file.csaplan'].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /ANALYSISPLAN, /CLASSMISSING, /CRITERIA, /DATA, /PLAN, /PRINT |
| Menu | Analyze ▸ Complex Samples |
Specifications
Section titled “Specifications”- CRITERIA: STAGES: how many stages of the plan to carry out; SEED: random seed
- CLASSMISSING: whether user-missing strata or cluster values form their own groups
- DATA: SELECTED=FILTER (default) filters out unselected cases; DELETE removes them
- ANALYSISPLAN: writes the analysis plan that matches the drawn sample
Examples
Section titled “Examples”CSSELECT /PLAN FILE='s.csplan' /CRITERIA SEED=2026 /ANALYSISPLAN FILE='a.csaplan'.- New variables per stage k: InclusionProbability_k_, SampleWeightCumulative_k_, PopulationSize_k_, SampleSize_k_ (SampleHits_k_ for with-replacement methods), and SampleWeight_Final_.
- Brewer’s and Sampford’s PPS methods reproduce the target inclusion probabilities exactly; units whose probability reaches 1 are taken with certainty.
- Methods PPS_MURTHY (two units per stratum), SIMPLE_CHROMY and PPS_CHROMY.
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.