Info
Warning
Danger
/ Homework Answers / Computer Science / Question Create a temporary data set from the permanent ICDB backgrounddata

Question

Question

Create a temporary data set from the permanent ICDB backgrounddata set. Keep only the following variables: subj, r_id, country,race, state and mar_st. Then, create temporary formats for each ofthe following variables, as defined as follows: subj: define apicture format so that the first digit, which defines the clinicalcenter, is separated from the rest of the number by a dash. Definea pound sign ("#") as a prefix, and define the picture so thatleading zeroes would not be printed. (Make sure you use enoughdigits in your picture to provide SAS enough room to display thepound sign!) state: define a value format based on the codebookstored in the SAS data set state_cd. country: define a value formatbased on the codes and responses on the background data form. race:define a value format that divides race into White, Black and Othermarital status: define a value format based on the codes andresponses on the background data form. r_id: define a pictureformat so that leading zeroes will be printed. To illustrate thesubject picture, use the OBS=10 option to print only the first 10subjects of the data set. For the remaining five variables, createa one-dimensional table of frequency counts using the FREQprocedure. Note that, in the FREQ procedure, you can either placemore than one variable in a TABLE statement or you can havemultiple TABLE statements each containing one variable. Finally,request that SAS display a list of all of the formats in yourcatalog.

 

Solution
5 (1 Ratings )

Solved
Computer Science 1 Week Ago 38 Views
This Question has Been Answered!
Premium Content -