Assignment 3
docx
keyboard_arrow_up
School
Florida State University *
*We aren’t endorsed by this school
Course
STA 3024
Subject
Statistics
Date
Feb 20, 2024
Type
docx
Pages
2
Uploaded by jasenrinehart
STA 3024 Assignment 3
1.
The data set lemur.txt (in the STA 3024 folder) contains the ID, Sex, Name, and DOB (date of birth) of 35 ring-tailed lemurs. a.
Using the list style of input read in the above data such that the dates are stored as numbers (SAS dates). Print the resulting data set without formatting it. b.
Print the data set so that DOB is formatted as February 7, 2024.
c.
Create a new data step based on the one in (a) that calculates the age in years of each lemur. Print the entire data set with the formats from (b).
d.
Create a new data set by using a SET statement with the data set created in (a) and use a WHERE statement to select only lemurs born in 2016.
e.
Print the name of the lemur with the highest status among this group. If you have been attending class, you should be familiar with the basic structure of ring-tailed lemur society.
2.
The data file donation.dat is in the STA3024 folder. The first 10 observations are:
120265 . . . 25
120267 15 15 15 15
120269 20 20 20 20
120270 20 10 5 .
120271 20 20 20 20
120272 10 10 10 10
120275 15 15 15 15
120660 25 25 25 25
120662 10 . 5 5
120663 . . 5 .
The following variables should be read in using list style input:
Name
Type
Length
IDNum
Character
6
Q1
Numeric
8
Q2
Numeric
8
Q3
Numeric
8
Q4
Numeric
8
Q1, Q2, Q3, and Q4 are the quarterly donations from each person.
Create a SAS data set containing the ID, Q1, Q2, Q3, Q4 and two new variables:
The number of quarters in which a person has a missing donation.
The total of the donations for each person.
Use SAS functions to calculate the new variables.
3.
The SAS data sets sales and nonsales are stored in the course folder.
a.
Use the statement LIBNAME lib '/courses/d649d56dba27fe300/
STA3024
'
;
to designate this folder as a library named lib. Make copies of lib.sales and lib.nonsales, called work.sales and work.nonsales. b.
Use a DATA step to concatenate the SAS data sets work.sales and work.nonsales to create a new data set called work.allemployees. Use a RENAME= data set option to change the names of the different variables in work.nonsales. work.allemployees should have 400 observations and 9 variables. 4.
The SAS data sets employee_payroll and employee_addresses are stored in the library defined in 3(a).
a.
Use a PROC SORT step to sort lib.employee_payroll in ascending order by Employee_ID to create a new data set, work.payroll, that contains the sorted data. b.
Use a PROC SORT step to sort lib.employee_addresses in ascending order by Employee_ID to create a new data set called work.addresses. c.
Use a DATA step to merge the two sorted data sets by Employee_ID to create a new data set called work.payadd. This new data set should have 424 observations and 16 variables.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Documents
Related Questions
2. Compute
10
10
and s for the data set:
arrow_forward
The following are the duration times (minutes) of all missions flown by a space shuttle. Use the given data to construct a boxplot and identify the 5-number summary.
4, 7403, 8683, 8824, 10, 045, 10, 107, 10, 115, 11, 452, 11, 533, 11, 877
the 5-nunmber summary is:
make a boxplot
arrow_forward
Find the mode of the following number of computers available to students at randomly selected high school libraries.
9,19,7,16,13,19,7,13,13
arrow_forward
In a trial of a new allergy medicine, 55 people were given the medicine and 55 were given a placebo. Of those given the medicine, 30 showed improvement in their allergy symptoms. Of those given the placebo, 35 did not show improvement.
Complete parts (a) through (d) below.
a. Make a two-way table summarizing the reviews.
Improvement No Improvement
Medicine
25
Placebo
20
(Type whole numbers.)
b. Make a Venn diagram from the table in part (a). Choose the correct answer below.
OA.
OB.
OC.
OD.
Medicine
Improve
Medicine
Improve
Medicine
Improve
Medicine
Improve
20
25
20
25
35
35
30
30
20
30
c. How many people who received medicine improved?
(Type a whole number.)
d. How many people who received a placebo did not improve?
(Type a whole number.)
arrow_forward
Coffee sales Owners of a new coffee shop tracked salesfor the first 20 days and displayed the data in a scatterplot(by day).a) Make a histogram of the daily sales since the shop hasbeen in business.b) State one fact that is obvious from the scatterplot, butnot from the histogram.c) State one fact that is obvious from the histogram, butnot from the scatterplot.
arrow_forward
The data set
32,41,52,11,53,74,21,44,26,75, has
number of modes.
Select one:
a. none of these
b. 2
c. 3
d. 1
arrow_forward
wenty members of a health club who jog were asked how many miles they jog per week. The responses are to the right. Construct a stem-and-leaf display. For single digit data, use a stem of 0.
Question content area bottom left
Part 1
Complete the stem-and-leaf display.
enter your response here
enter your response here
enter your response here
enter your response here
enter your response here
enter your response here
enter your response here
enter your response here
enter your response here
enter your response here
(Use ascending order.)
...
Question content area right
Part 1
14
17
5
8
10
27
23
31
19
6
5
25
40
22
16
13
21
33
19
14
arrow_forward
The data show the sizes in square miles of notable islands in the Baltic Sea and the Aleutian Islands.
Baltic Sea
Aleutian Islands
600
266
224
1049
1151
1562
1149
678
2767
347
402
434
(a)Draw the boxplot for the given data for the Baltic Sea. Round your answers to the nearest ten.
050010001500200025003000Baltic Sea
(only 5 numbers can be in the boxplot)
arrow_forward
if a data set follows a skewed distrubition, which measure of center can be used as a center for the data set ____
arrow_forward
. In a Venn diagram, write the similarities or equivalent of each type of quantiles.
QUARTILE
DECILE
PERCENTILE
arrow_forward
Use the following data from Memorial Health to c
alculate the Newborn average daily census for the entire year. Round to the nearest whole number.
January 1st – June 30th
A&C Bed Count: 150
A&C Inpatient Service Days: 26,613
Bassinet Count: 40
Newborn Inpatient Service Days: 4108
July 1st - December 31st A&C Bed Count: 200Inpatient Service Days: 33,921Bassinet Count: 40Newborn Inpatient Service Days: 4068
Group of answer choices
20
21
22
23
arrow_forward
1.) Data were collected using a questionnaire. Three variables were recorded:
ID from column 1-3
DOB from column 5-10 (Note: DOB is in a 6 character format we will talk about later.)
OPINION from column 11-13
Here is the sample data:
001 102178YES
002 010380NO
004 022390YES
Write a SAS program to read these data. PRINT the final data set as your answer.
arrow_forward
Please answer all thoroughly and clearly
Grade 12 Data Management
arrow_forward
Use Grade 12 Data Management Beginner
arrow_forward
Find the five-number summary of the scores in the Math 130 test pre-sented in Table 4.1, page 112. Draw the boxplot.
arrow_forward
Construct a stem-and-leaf display for the following data. Use a leaf unit of .
Note: if there is nothing to fill in the box, you should leave it empty. If your answer is “zero” enter “0”.
1,543 1,299 1,103 1,557 1,153 1,650 1,190 1,279 1,593 1,416 1,104 1,269 1,665 1,679
arrow_forward
A. list learning
b. Figure copy
c. Digit symbol coding
d. List recognition
e. Story memory
arrow_forward
<
The accompanying table shows the number of cars that arrived at a local drive-through restaurant during lunch hour (12:00-1:00 PM.) over the past 39 days
a) Construct an ordered stem and leaf display for these data.
b) Construct an ordered stem and leaf display, splitting the stems from part a.
Click the icon to view the data table.
a) Construct an ordered stem and leaf display for these data.
b) Construct an ordered stem and leaf display, splitting the stems from part a
(5)
(0)
THE
(5)
(0)
(5)
(0)
(5)
Number of Cars
50
34 44 47 45 34 40 40
58 40 56 53
55 37 52 58 26
32 43 49 33
36 37 57
54 34 29 27 52 38 44 52
29 30 26 29 46 50 38
Print
Done
arrow_forward
Create a stem plot for the following 26 numbers:
1, 13, 28, 31, 32, 32, 37, 37, 37, 38, 39,
3, 53, 55, 58, 62, 62, 63, 65, 65, 65, 66
arrow_forward
can only display numerical data, while a
can display categorical
data.
A. histogram; bar graph
O B. bar graph; histogram
O C. list; histogram
O D. bar graph; list
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Glencoe Algebra 1, Student Edition, 9780079039897...
Algebra
ISBN:9780079039897
Author:Carter
Publisher:McGraw Hill
Related Questions
- 2. Compute 10 10 and s for the data set:arrow_forwardThe following are the duration times (minutes) of all missions flown by a space shuttle. Use the given data to construct a boxplot and identify the 5-number summary. 4, 7403, 8683, 8824, 10, 045, 10, 107, 10, 115, 11, 452, 11, 533, 11, 877 the 5-nunmber summary is: make a boxplotarrow_forwardFind the mode of the following number of computers available to students at randomly selected high school libraries. 9,19,7,16,13,19,7,13,13arrow_forward
- In a trial of a new allergy medicine, 55 people were given the medicine and 55 were given a placebo. Of those given the medicine, 30 showed improvement in their allergy symptoms. Of those given the placebo, 35 did not show improvement. Complete parts (a) through (d) below. a. Make a two-way table summarizing the reviews. Improvement No Improvement Medicine 25 Placebo 20 (Type whole numbers.) b. Make a Venn diagram from the table in part (a). Choose the correct answer below. OA. OB. OC. OD. Medicine Improve Medicine Improve Medicine Improve Medicine Improve 20 25 20 25 35 35 30 30 20 30 c. How many people who received medicine improved? (Type a whole number.) d. How many people who received a placebo did not improve? (Type a whole number.)arrow_forwardCoffee sales Owners of a new coffee shop tracked salesfor the first 20 days and displayed the data in a scatterplot(by day).a) Make a histogram of the daily sales since the shop hasbeen in business.b) State one fact that is obvious from the scatterplot, butnot from the histogram.c) State one fact that is obvious from the histogram, butnot from the scatterplot.arrow_forwardThe data set 32,41,52,11,53,74,21,44,26,75, has number of modes. Select one: a. none of these b. 2 c. 3 d. 1arrow_forward
- wenty members of a health club who jog were asked how many miles they jog per week. The responses are to the right. Construct a stem-and-leaf display. For single digit data, use a stem of 0. Question content area bottom left Part 1 Complete the stem-and-leaf display. enter your response here enter your response here enter your response here enter your response here enter your response here enter your response here enter your response here enter your response here enter your response here enter your response here (Use ascending order.) ... Question content area right Part 1 14 17 5 8 10 27 23 31 19 6 5 25 40 22 16 13 21 33 19 14arrow_forwardThe data show the sizes in square miles of notable islands in the Baltic Sea and the Aleutian Islands. Baltic Sea Aleutian Islands 600 266 224 1049 1151 1562 1149 678 2767 347 402 434 (a)Draw the boxplot for the given data for the Baltic Sea. Round your answers to the nearest ten. 050010001500200025003000Baltic Sea (only 5 numbers can be in the boxplot)arrow_forwardif a data set follows a skewed distrubition, which measure of center can be used as a center for the data set ____arrow_forward
- . In a Venn diagram, write the similarities or equivalent of each type of quantiles. QUARTILE DECILE PERCENTILEarrow_forwardUse the following data from Memorial Health to c alculate the Newborn average daily census for the entire year. Round to the nearest whole number. January 1st – June 30th A&C Bed Count: 150 A&C Inpatient Service Days: 26,613 Bassinet Count: 40 Newborn Inpatient Service Days: 4108 July 1st - December 31st A&C Bed Count: 200Inpatient Service Days: 33,921Bassinet Count: 40Newborn Inpatient Service Days: 4068 Group of answer choices 20 21 22 23arrow_forward1.) Data were collected using a questionnaire. Three variables were recorded: ID from column 1-3 DOB from column 5-10 (Note: DOB is in a 6 character format we will talk about later.) OPINION from column 11-13 Here is the sample data: 001 102178YES 002 010380NO 004 022390YES Write a SAS program to read these data. PRINT the final data set as your answer.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Glencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw Hill
Glencoe Algebra 1, Student Edition, 9780079039897...
Algebra
ISBN:9780079039897
Author:Carter
Publisher:McGraw Hill