Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 ) Download the Demographic file of all adverse events reported to the food and drugs administration ( FDA ) in the first quarter of
Download the Demographic file of all adverse events reported to the food and drugs administration FDA in the first quarter of DEMOQ The dataset comes as an ASCII file txt file extension
Create a permanent SAS library called Exam pt
Using the INFILE statement method only, import the Demographics file into SAS and permanently store it in the Exam library. Name the SAS dataset Demog Use the data description file ASCNTSPDF to determine the list of variables.
a The length of some character variables are as follows:
i Mfrsndr
ii Mfrnum iii. Litref
Note: Ensure to open the file to explore the data and understand its structure. Do you notice consecutive delimiters? Think of an INFILE statement option that can handle the situation. Take note of the date values and use the right SAS informat to read the data. Some dates are partial and could appear missing depending on the informat you choose. This is acceptable in this exam pts
Create labels for all variables using the data description file. Remember the character limit of labels is so try to make your labels succinct. pts
Now that youve saved the demographic ASCII file as a SAS dataset, answer the questions below.
Questions:
How many reports were submitted in the first quarter? Assume each observation is a unique report pt
How many variables are in the dataset? pt Use the appropriate SAS code to answer questions and
Print out the first observations for the variables listed below. Use an appropriate format to display the dates as twodigit day, threeletter month and fourdigit year exJAN Also, ensure the variable labels are displayed in the output. Submit this output
a Primaryid
b Sex
c Age
d Agegrp
e Reptdt
f Occpcod pt
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