Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a temporary data set from the permanent ICDB background data set. Keep only the following variables: subj, r_id, country, race, and mar_st. Then, create
Create a temporary data set from the permanent ICDB background data set. Keep only the following variables: subj, r_id, country, race, and mar_st. Then, create temporary formats for each of the following variables, as defined as follows: subj: define a picture format named subjpix so that the first digit, which defines the clinical center, is separated from the rest of the number by a dash. Define a pound sign ("#") as a prefix, and define the picture so that leading zeroes would not be printed. i.e. 110027 = #1-10027 (Make sure you use enough digits in your picture to provide SAS enough room to display the pound sign! ) country: define a value format named countryfmt based on the codes and responses on the background data form. race: define a value format named racefmt based on the codes and responses on the background data form. marital status: define a value format named mar_stfmt based on the codes and responses on the background data form. r_id: define a picture format named r_idfmt so that leading zeroes will be printed. i.e. 0987 = 0987 To illustrate the subject picture, use the OBS=10 option to print only the first 10 subjects of the data set. To illustrate the r_id picture and formats for the remaining three variables, create a one-dimensional table of frequency counts using the FREQ procedure. Note that, in the FREQ procedure, you can either place more than one variable in a TABLE statement or you can have multiple TABLE statements each containing one variable. Add a title. Request that SAS display a list of all of the formats in your catalog
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started