logo Use SA10RAM to get 10%* Discount.
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Aaysa KhanNursing
(5/5)

843 Answers

Hire Me
expert
StatAnalytica ExpertPsychology
(5/5)

525 Answers

Hire Me
expert
Gary BartonAccounting
(5/5)

885 Answers

Hire Me
expert
Sarita VashisthEconomics
(5/5)

647 Answers

Hire Me
Assignment Writing

Write SAS code to perform the following analysis and to answer the following questions. You may need to add additional variables to your dataset.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

What to hand in: Entire SAS program and all relevant output and plots generated. Be sure to answer all questions.

 A SAS dataset called tomhscv on the class website contains risk factor and cardiovascular outcome data on all 902 participants in the TOMHS study. The following variables are on the dataset.

Variable Name

Description

group                  treatment group assigned (1-5 active drug, 6=placebo)age of participant at entry (baseline)

sex                      gender, 1=men, 2=women

eversmk             question of whether the participant ever smoke cigarettes (1=yes, 2=no)

nowsmk              question of whether the participant now smokes cigarettes (1=yes, 2=no). This question is asked only if the the variable eversmk = 1. These questions were asked at baseline.

sbpbl                   systolic BP at baseline

sbp12                   systolic BP at 12-months

cholbl                  blood serum cholesterol at baseline

chol12                  blood serum cholesterol at 12-months

hdlbl                    blood HDL cholesterol at baseline

hdl12                   blood HDL cholesterol at 12-months

glucosbl              blood glucose at baseline

glucos12              blood glucose at 12-months

cvd                      CVD event status during the study (1=yes,2=no) Do the following:

 

  1. In a data-step read in the dataset tomhscv creating a work dataset called tomhs and adding the following

    • Define a variable called smoke = 1 if the participant is a current smoker at baseline and 0 if not a current smoker at baseline, i.e. an ex-smoker or never-smoker (use variables eversmk and nowsmk).

    • Define a variable called dm = 1 if the participant’s glucose at baseline is above 126 mg/dl and 0 if 126 mg/dl or below at

    • Define a variable called active = 1 if on active BP medication and 0 for

    • Define a variable called rxold = 1 if group is equal to 1 or 3, and = 2 if group is equal to 2,4, or The placebo group (group = 6) should be missing.

When creating new variables be sure to account for missing data. For example, the variable smoke should only be defined for those that completed the item eversmk.

Write SAS code to perform the following analysis and to answer the following questions. You may need to add additional variables to your dataset.

  1. How many and what percentage of participants were current smokers at baseline? How many participants had missing data for smoking?

  2. How many and what percentage of participants experienced a CVD event during the study?

  3. Did being on active treatment lower the risk of CVD during the trial? Give the odds ratio of CVD for active treatment versus placebo. (Hint: Use either proc freq or prog logist).

  4. Using proc logist which of the following baseline variables are significantly related to CVD?

1) age, 2) gender (women versus men), 3) systolic BP, 4) serum cholesterol, 5) smoking, and

6) diabetes (variable dm). Include all these variables in one model. What is the adjusted odds ratio of CVD for smokers versus non-smokers?

  1. Did the older or newer drugs reduce systolic BP more at 12-months compared to baseline? Was the difference in SBP change between the two groups significant? (Hint: Use proc ttest or proc glm).

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

357 Experts Online