# Teaching Data to do Tricks - PowerPoint PPT Presentation

1 / 10

Teaching Data to do Tricks. Recoding continuous data into bins Operations on alphanumeric variables (string variables) Generating test data Taking random subsamples from a finite population. Recoding continuous data into bins. Recoding continuous data into bins. Symmetrical bins

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

Teaching Data to do Tricks

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

### Teaching Data to do Tricks

• Recoding continuous data into bins

• Operations on alphanumeric variables (string variables)

• Generating test data

• Taking random subsamples from a finite population

### Recoding continuous data into bins

Symmetrical bins

If X >=0 and X<5 then bin=2;

if X >=5 and X<10 then bin=7;

if X >=10 and X<15 then bin=12;

if X >=15 and X<20 then bin=17;

if X >=20 and X<25 then bin=22;

if X >=25 and X<30 then bin=27;

Asymmetrical bins

If X >=0 and X<10 then bin=1;

if X >=10 and X<100 then bin=2;

if X >=100 and X<1000 then bin=3;

if X >=1000 then bin=4;

### Operations on alphanumeric variables

• Concatenation

• Substr

• Scan

• _n_ variable