How to Handle Missing Data in SAS: SAS for Beginners (Lesson 16)
Learning with Jelly
0:00 / 0:00
How to Handle Missing Data in SAS: SAS for Beginners (Lesson 16)
5 772 просмотра · 4 г. назад
Learning with Jelly
8,76 тыс. подписчиков
5 772 просмотра · 4 г. назад
Hi Jelly Learners,
Today we are going to talk about how to recognize and handle missing data in SAS. We will be able to notice the difference between character/numeric variables, change missing data to another value (mean or median), or drop missing observations.
Code for Numeric Vars:
data scores;
input id score1 score2 score3;
datalines;
1 80 . 91
2 72 83 98
3 64 78 .
4 52 . 90
5 77 89 .
6 . 69 84
;
run;
Code for Character Vars:
data cars;
input ID $ make $ model $ color $;
datalines;
1 ford focus tan
2 ford focus .
3 nissan sentra white
4 nissan sentra white
;
run;
Please like, comment, and subscribe :)