Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi ! I am struggling with SAS and needed help understanding what codes I would use for the following questions ( I have not provided

Hi! I am struggling with SAS and needed help understanding what codes I would use for the following questions (I have not provided the data sets but instead just need help with working through these/what I would do): 1. Create a temporary dataset called Combined that merges bc_physicalactivity, bc_reproductive, and bc_bmxlabs by the unique identifier (SEQN). In the process of merging, create 3 temporary datasets to hold the sorted data as part of the PROC SORT statement. Use these temporary datasets in your merge to create Combined. In the dataset Combined, you only want to keep observations with data in the two datasets called bc_bmxlabs and bc_reproductive. (HINT: you need to use the in= option). 2. Check the contents of the new SAS data set, Combined, by running the appropriate procedure. How many variables and observations are in the data set? 3. You would like to use shorter and more concise names for some of the variables in Combined. You decide to rename a few variables so that they are easier to write in your subsequent codes. You rename these variables as follows: participant id as ID, race/ethnicity as RACE, education as EDU, ever been pregnant as PREG, ever taken birth control as OC, and mean duration (minutes) of moderate activity bouts per day as MODACT. Consult the codebook at the end of this exercise to look up the names of these variables (e.g., the variable name for participant id is SEQN). a. Write a procedure to check if your variables have been successfully renamed. Describe how you verify the correct coding using the information on the results window. 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions