The Sample function always requires a data table. Some syntax options also require a summary table.
Column Name | Data Type | Description |
---|---|---|
data_column | Any | Contains data to be sampled. |
condition_column | Any | [Optional] Contains the data conditions. For some syntax options, the data conditions are in the summary table. |
Column Name | Data Type | Description |
---|---|---|
data_column | Any | Contains data to be sampled. (Optional for Unconditional Sampling, Approximate Sample Size, in the Sample Syntax section.) |
condition_column | Any | Contains the data conditions. |
The summary input must summarize the population statistics faithfully. That is, sum / stratum_count with a non-null stratum value must equal the total population size. Otherwise, the final sample output might not approximate the target sample fractions well.