Question: In SAS Studio I have a categorical variable called Hearing. In the hearing column there is yes, no and missing values. If the hearing variable

In SAS Studio I have a categorical variable called Hearing. In the hearing column there is "yes", "no" and missing values. If the hearing variable contains missing values hearing_info will be assigned with value 1; otherwise, hearing info will be assigned with value 0. How can I do that in SAS?

In SAS Studio I have a categorical variable called Hearing. In the

% SFU Connect :See \ D Lab Notes Stat 34 x . D Lab Notes Stat 34 x D Lecture Notes Ste x . S SASInformationCK / S SAS Studio xeChegg Study Gui | - | localhost! 0080/SASStudio/36/main?locale-en-US&zone:GMT-07%253A00&http%3A%2F%2Flocalhost%3A10080%2FSASStudio%2F36%2F= O e Program 4.sas SAS Studio SAS Programmer Sign Out Server Files and Folders *Program 1.sas xProgram 2.sas x A Program 3.sas *Program 1 x LOG RESULTS OUTPUT DATA farms3.txt Table: WORK.HEARINGI View: Column names ! 3YFlter: (none) hearing.txt marriage-age.csv Columns O Total rows: 34 Total columns: 8 D mobilenet.csv Preg Hearing M Income 2916.6666667 4000 2500 2083.3333333 2975 2391.6666667 8166.6666667 2666.6666667 3250 6333.3333333 4916.6666667 10000 9416.6666667 2408.3333333 Income Select all Program 1.sas Program 2.sas Program 3.sas 26 26 32 32 34 28 35000 Program 1.sas 1 no 30000 25000 35700 28700 98000 32000 39000 76000 59000 120000 113000 28900 Program 2.sas- smoke ge Program 3.sas Program 4sas Program 4.sas schoolyearsf1544.csv score_data.xlsx teen_fertility.csv tobacco_adult.csv warpbreaks.csv 2 Preg Hearing 25 123 M_Income 30 17 29 1 no Property Label Name Value 1 no Tasks and Utilities Snippets Libraries File Shortcuts 1 yes Type Format Message: User: sesdemo

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!