Notes5 - run ; DM: create new datasets Use either keep or...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
if then statement Data me3 ; set me ; if Gender = ‘f’ then sex = ‘ Female’; else sex = ‘Male’ ; run ;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
if then statement Data me3 ; set me ; if class = 4 then Level = ‘ Senoir ’; else if class = 3 then Level = ‘Junior’; else Level = ‘ Sophomore’ ; run ;
Background image of page 2
DM : Create new datasets Data me4 ; set me ; if 1 <= x <= 3 then Level = ‘ Low ’; else if 3 < x <= 5 then Level = ‘ Medium’ ; else level = ‘ High’;
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: run ; DM: create new datasets Use either keep or drop to shed off some variables. The two cant be used together. example: Data new ; set old; keep a d ; run ; Data new ; set old; drop a d ; run ; Combining datasets contd Use Merge and Set statements to combine 2 or more datasets Refer to the simple code sent via the email for details....
View Full Document

Page1 / 5

Notes5 - run ; DM: create new datasets Use either keep or...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online