STAGEVARS Subcommand (CSPLAN command)

The STAGEVARS subcommand is used to obtain stagewise sample information variables when a sample design is executed. Certain variables are created automatically and cannot be suppressed. The names of both automatic and optional stagewise variables can be user-specified.

  • Stagewise inclusion probabilities and cumulative sampling weights are always created.
  • A stagewise duplication index is created only when sampling is done with replacement. A warning occurs if index variables are requested when sampling is done without replacement.
  • If a keyword is specified without a variable name, a default name is used. The default name indicates the stage to which the variable applies.

Example

/STAGEVARS POPSIZE 
           INCLPROB(SelectionProb)
  • The syntax requests that the population size for the stage be saved using a default name.
  • Inclusion probabilities for the stage will be saved using the name SelectionProb. (Note that inclusion probabilities are always saved when the sample design is executed. The syntax shown here requests that they be saved using a nondefault name.)