Question: Using the new dataset (Demog_ae) and IF THEN DO statements, create two variables as follows: 1) Among males only (sex_cod=M), create a new variable called

Using the new dataset (Demog_ae) and IF THEN DO statements, create two variables as follows: 1) Among males only (sex_cod="M"), create a new variable called cardio if PT="Cardiomyopathy" or "Myopathy". Set the value of cardio to 1 if these events are present or 0 if they're not 2) Among females only (sex_cod=F), create a new variable called osteo if PT=Osteoarthritis. Set the value of Osteo to 1 if arthritis is present or 0 if absent. Paste your SAS code in the box

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 Mathematics Questions!