Question: Create a SAS dataset reading the following variables from tomhs.txt: ptid, clinic, age, sex, race, cholbl, chol12, glucosbl, glucos12 Compute two new variables: choldif=cholbl-chol12 and

  1. Create a SAS dataset reading the following variables from tomhs.txt:

ptid, clinic, age, sex, race, cholbl, chol12, glucosbl, glucos12

  1. Compute two new variables: choldif=cholbl-chol12 and glucosdif=glucosbl-glucos12
  2. Write a SAS program to compute MEAN, STANDARD DEVIATION, MEDIAN, FIRST QUARTILE AND THIRD QUARTILE for glucosdif.
  3. Construct a high resolution histogram for glucosdif.
  4. Construct a high resolution horizontal bar graph for the variable race.
  5. Display a cross-tabulation of patients by race and sex.
  6. Construct a high resolution vertical bar chart for the variable race separated by sex.

  1. Construct a scatter plot of glucosdif versus choldif.
  2. Construct a scatter plot of glucosdif versus choldif grouped by sex.
  3. Fit a regression model that allows us to model how glucosdif depends on a

choldif.

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!