5.18.2. Stratified Sampling

<< Click to Display Table of Contents >>

Navigation:  5. Detailed description of the Actions > 5.18. TA - Stats >

5.18.2. Stratified Sampling

 

Icon:   ANATEL~4_img215  

 
Function: samplingStratified
 

Property window:

 

ANATEL~4_img214

 

Short description:

 

Stratified sampling on a modal variable.

 

Long Description:

 

Stratified sampling on a modal variable.

 

Here is an example: Let’s assume that:

…we want to randomly select 10% number1 of the input rows.

…we want to “stratify” on the column “education”: number2 i.e. we must ensure that the distribution of the variable “education” stays exactly the same inside our sample than inside our original population.

 

We’ll have:

 

clip0263