Answered step by step
Verified Expert Solution
Link Copied!

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

1) Download the Demographic file of all adverse events reported to the food and drugs administration (FDA) in the first quarter of 2019(DEMO19Q1). The dataset comes as an ASCII file (.txt file extension).
2) Create a permanent SAS library called Exam1(1 pt)
3) Using the INFILE statement method only, import the Demographics file into SAS and permanently store it in the Exam1 library. Name the SAS dataset Demog. Use the data description file (ASC_NTS.PDF) to determine the list of variables.
a. The length of some character variables are as follows:
i. Mfr_sndr=120
ii. Mfr_num=100 iii. Lit_ref=1000
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 (10 pts)
4) Create labels for all variables using the data description file. Remember the character limit of labels is 252 so try to make your labels succinct. (2 pts)
Now that youve saved the demographic ASCII file as a SAS dataset, answer the questions below.
Questions:
1) How many reports were submitted in the first quarter? Assume each observation is a unique report (1 pt)
2) How many variables are in the dataset? (1 pt). Use the appropriate SAS code to answer questions (1) and (2)
3) Print out the first 10 observations for the variables listed below. Use an appropriate format to display the dates as two-digit day, three-letter month and four-digit year (ex.01JAN2020). Also, ensure the variable labels are displayed in the output. Submit this output
a. Primaryid
b. Sex
c. Age
d. Age_grp
e. Rept_dt
f. Occp_cod (1 pt)

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions

Question

=+ How do some of them single you out when you're the consumer?

Answered: 1 week ago