MidTerm Project SAS Code for Problem 1
.txt
keyboard_arrow_up
School
University Of Arizona *
*We aren’t endorsed by this school
Course
5A
Subject
Mechanical Engineering
Date
Dec 6, 2023
Type
txt
Pages
3
Uploaded by CaptainApe3549
/* BIOS 576D Midterm Project_Rev C
1) (10 points) Injury Severity Score (ISS).
Abbreviated Injury Scale (AIS) measurement on six variables representing
six areas on or near the upper body. Each body area has an injury
measurement ranging from 0 (no injury) to 6 (nonsurvivable injury).
Raw data file ais_iss.csv is provided and contains measurements for
6964 UMC patients with traumatic injuries.
Generate annotated SAS code that reads and inspects ais_iss.csv and
performs the tasks in (a) through (e) below
Read ais_iss.csv and inspect the dataset contents */
PROC IMPORT datafile='~/bios576d/ais_iss.csv' out=work.ais_iss
dbms=csv replace;
/* Read the raw data file => SAS data set */
datarow=2;
delimiter=',';
getnames=yes;
guessingrows=max;
run;
proc contents data=work.ais_iss;
/* Use this to inspect the SAS data set */
title 'AIS_ISS Dataset';
run;
/* 6964 observations on 7 numeric variables (patient ID + 6 AIS measurements) */
/* 1a) (2 points) Calculate, report and interpret appropriate descriptive
statistics for each variable in the data set representing an area of
the body and its AIS measurement. For which body area(s) were nonsurvivable
injuries measurements recorded? */
title '1a) Descriptive Statistics for AIS_ISS Dataset';
proc freq;
tables Abd_AIS Head_AIS Extrem_AIS External_AIS Chest_AIS Face_AIS;
proc means;
var Abd_AIS Head_AIS Extrem_AIS External_AIS Chest_AIS Face_AIS;
run;
title;
/* Interpretation:
In this data set, no body areas had missing values.
Chest injuries dominate:
- All 6964 patients had injuries to the Chest (no patients had Chest_AIS= 0 =
No injury).
- The Chest was the only body area for which nonsurviable injures were
recorded
=> 4 patients had a value of Face_AIS=6.
- Chest injuries had the highest mean AIS measurement (2.4).
Abdomen injuries had the lowest mean AIS measurement (0.01).
/* 1b) (3 points) Determine the Injury Severity Score (ISS) for each patient by
identifying
the three highest AIS values and adding up the squares of these three
values.
If a patient has a nonsurvivable injury in any of the six areas of the
body, set the ISS automatically to 75.
Note: If you decide to use an array for this part of the the exercise, the
statement CALL SORTN(OF name_of_array{*}) in your data step will sort the
values in the array from smallest to largest.
Print the values for the 6 variables and their calculated ISS, but, using
appropriate SAS code, only include the results for patients 10 through 35
in your document.
Analysis approach:
Place each patient's body area variable in an array, sort the array elements
from smallest to largest, and sum the squares of array elements 4, 5 and 6
to calculate the ISS for the patient.
Note: The 3 highest AIS values are automatically sorted into elements
4, 5 and 6 by SORTN.
Note: In lieu of using an array and SORTN, you could use the LARGEST
function
instead: largest(k, abd_ais, head_ais, extrem_ais, external_ais, chest_ais,
face_ais)
where value k=1 is the largest value of the 6 body areas, k=2 is the second
largest value, etc. and assigning the results to variables named
largest1, largest2, largest3.
If array element 6 has a value of 6, then set the patient's ISS to 75
Patient ID 9, 651, 5799, and 6361 are the four with values of Face_AIS= 6 */
data work.ais_iss_score;
set work.ais_iss;
/* Using an array and call routine SORTN ... */
array ais{*} abd_ais head_ais extrem_ais external_ais face_ais chest_ais
/*
or ais{*} */;
call sortn(of ais{*}); /* sort array ais in ascending order, must use ais{*},
not ais{6} */
iss_score=(ais{4})**2 + (ais{5})**2 + (ais{6})**2;
if ais{6}=6 then iss_score=75;
/* Using the largest function instead ... */
/*
largest3=largest(3, abd_ais, head_ais, extrem_ais, external_ais, chest_ais,
face_ais);
largest2=largest(2, abd_ais, head_ais, extrem_ais, external_ais, chest_ais,
face_ais);
largest1=largest(1, abd_ais, head_ais, extrem_ais, external_ais, chest_ais,
face_ais);
iss_score=(largest3)**2 + (largest2)**2 + (largest1)**2;
if largest1=6 then iss_score=75;
*/
run;
title '1b) Calculated Injury Severity Score (ISS) for Patients 10 to 35';
proc print data=work.ais_iss_score (firstobs=10 obs=35);
run;
title;
/* 1c) (3 points) How many patients have more than 4 of the 6 body areas injured?
Use a data step and a sum statement to perform this calculation, not PROC
FREQ
or PROC MEANS.
Note: Using the “end of file processing” (EOF) method
discussed
in Homework #3, Optional Extra Credit problem, may simplify your code and
output.
Analysis approach:
Use the optional "end of file" processing method in a data null step.
For each patient, use variable count_ais to count the number of injured
body areas, then increment variable count_gt4 by one for each patient
having count_ais > 4. Otherwise, use a PROC PRINT step
Answer: 266 (5 injuries) + 53 (6 injures) = 319 patients */
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 Questions
sample calculations
目
File Edit View Insert Format Data To
100%
$ % .0
.00 12:
fx |
A
1
Variable
Value
Units
diameter
height
m
4
volume
m^3
3
The image above shows a section of a Google sheet. What formula should be written in cell
B4 to calculate the volume of a cylinder with a diameter value in B2 and height in B3?
a) =0.25*PI()*B2^2 * B3
b) =PI()*B2^2 * B3
c) =pi*diameter^2 * height
d) =PI*B2^2 * B3
3 5
arrow_forward
Don't Use Chat GPT Will Upvote And Give Handwritten Solution Please
arrow_forward
Projects A and B are mutually exclusive. The minimum attractive rate of return (MARR) is 12%.
Using rate of return analysis, which project should be selected?
If the image fails to load here, go to https://www.dropbox.com/s/ld6wctqieu8jgwp/ROR.jpg
Year
0
1
2
3
4
ROR
A
- $750
$200
$200
$200
$600
17.68%
B
- $1,150
$300
$350
$400
$700
16.44%
O Project A
O Project B
O Both Project A and B
O Select none of the project.
O Insufficient information to make a decision.
B-A
- $400
$100
$150
$200
$100
13.69%
arrow_forward
The figure shows the normal force on a jumping person as measured using a force table.
A: From the graph, determine the weight of the jumping person.
B: What is the maximum net force on the jumping person during the jump phase?
C: Approximate the average net force during the jumping phase.
arrow_forward
this is a practice problem, not a graded assignment
arrow_forward
e IY: %VY OLD ?
د ميکانيك شهري 2021.pdf
UNIVERSITY OF BASRAH - COLLEGE OF ENGINEERING
DEPARTMENT OF CIVIL ENGINEERING
Subject: Engineering Mechanics-Static
Class: 1st year, 1st term
Exam. : Semester
Date: 16/3/2021
Examiner: Dr. Mazin, Dr. Aqeel, Dr.Ahid and Dr.Jaffar
Time: 1.5Hours
Q1] (10 Marks)
A- In Fig.A , If the resultant force acting on the bracket is to be 642 N directed
along the positive x axis, determine the magnitude of F.
B- In Fig.B , Determine the magnitude of the resultant force acting on the screw
eye and its direction measured clockwise from the x axis.
C- In Fig.C , Resolve the 100N force into components along the u and v axes, and
determine the magnitude of each of these components.
D- In Fig.D, Determine the moment of the force about point O.
300 N
60N
25°
32
45°
60°
505 N
50°
40N
Fig. A
50 N
Fig. B
400 N
100N
28°
18
2.12 m
Fig. C
2.12 m
Fig.D
Q2] (10 Marks)
A- In Fig.A , Replace the loading system by an equivalent resultant force and
specify where the resultant's…
arrow_forward
- Moos X
O CIVL3106_yahiaz_sprir x
Part 1
b Answered: soil mechar x
elearn.squ.edu.om/mod/quiz/attempt.php?attempt3D2055593&cmid=903343
IO YouTube Maps
التعلم القبلي G
IG SYSTEM (ACADEMIC)
raur. p
Time le
From the figure below determine Cc (compression index)
1.9
1.7
1.5
1.3
1.1
0.9
0.7
0.5 +
10
100
1000
Pressure (kPa)
Paragraph
BI
Void ratio
!!
arrow_forward
Please help me to Draw an isometric sketch of the component
arrow_forward
I need the answer as soon as possible
arrow_forward
What would be the analysis of the given table or graph?
arrow_forward
kamihq.com/web/viewer.html?state%=D%7B"ids"%3A%5B"1vSrSXbH_6clkKyVVKKAtzZb_GOMRwrCG"%5D%...
lasses
Gmail
Copy of mom it for..
Маps
OGOld Telephone Ima.
Preview attachmen...
Kami Uploads ►
Sylvanus Gator - Mechanical Advantage Practice Sheet.pdf
rec
Times New Roman
14px
1.5pt
BIUSA
A Xa x* 三三
To find the Mechanical Advantage of ANY simple machine when given the force, use MA = R/E.
1.
An Effort force of 30N is appliled to a screwdriver to pry the lid off of a can of paint. The
screwdriver applies 90N of force to the lid. What is the MA of the screwdriver?
MA =
arrow_forward
Lab 2-Measurement Asynch - Tagged.pdf
Page 4 of 7
?
Part I: Taking Measurements & Estimating Uncertainties for a single measurement
www.stefanelli.eng.br
The mass of the object is_
0
i
Parts on a tripie peam palance
0
0
10 20 30
1
100
2 3
40
200
4
+/-
50 60 70
5
300
7
400
80
Qv Search
8
90
9
500
100
9
10 g
www.stefanelli.eng.br
arrow_forward
Make the graphs shown on the picture exactly the same. Follow the directions in the other picture. Please make the graphs look exactly the same as the picture. Make them on MATLAB, please send code.
arrow_forward
5
Ċ Safari File Edit View History Bookmarks Window Help
...
3....
ock
CENGAGE MINDTAP
1
Chapter 5: Review Questions
Assignment: Chapter 5: Review Questions (Practice)
18.
control
19.
Questions Gravity Review Question 31
17.
20.
21.
22
23.
24.
esc
25.
28.
29.
V
30.
31.
32.
33.
●
O
Pra....
26
27. Not Answered
●
●
●
●
●
O
O
●
O
●
!
1
Icon Key
300⁰
Q
2.
A
1
N
If a planet were to slowly migrate inward toward the Sun while remaining in a stable orbit, would its orbital speed increase, decrease, or stay the same? Would its angular momentum change?
O
a. As the planet migrates toward the Sun, its orbital speed would increase and its angular momentum would decrease.
b. As the planet migrates toward the Sun, its orbital speed would stay the same and its angular momentum would decrease.
OC. As the planet migrates toward the Sun, its orbital speed would increase and its angular momentum would stay the same.
Od. As the planet migrates toward the Sun, its orbital speed and angular momentum would stay…
arrow_forward
In matlab code
arrow_forward
PART A Using the graph to the right, what would Air Pressure be (mb) at an altitude of 10 km? What is the approximate altitude where the air pressure is 400 mb?
PART B At an altitude of 0 km, what is the air pressure in mb?
arrow_forward
Q1:
1
1
3
4
5
6
8
10
11
time (s)
The above velocity- time graph for an object that moves as shown path.
1. Discuss the diagram.
2. Instantaneous acceleration after 1.5 second of staring.
3. The displacement during the first six seconds.
4. The acceleration last 2 seconds.
velocity (m/s)
arrow_forward
immediately
arrow_forward
save me please - production planning and control
arrow_forward
Answer the following question and explain
arrow_forward
I need help with this question. :)
arrow_forward
QI:
30
time (s)
The above velocity- time graph for an object that moves as shown path.
1. Discuss the diagram.
2. Instantaneous acceleration after 1.5 second of staring.
3. The displacement during the first six seconds.
4. The acceleration last 2 seconds.
arrow_forward
nces
Mailings
Review
View
Help
ntain viruses. Unless you need to edit, it's safer to stay in Protected View.
Enable Editing
1
2.
8.1 9 10
1 11
12 1 13 14 T
15 1 16 17 1
1
[8]
QUESTION 2
Calculate the length of the resistor of a circular wire used in a heater element connected to a
240V supply and the heater consumes 8 joules of energy in 0,25 seconds. The resistor element
is made of aluminium and it has a uniform cross-sectional area with a diameter of 0,00016
inches.
Hints: linch = 25,4 mm, resistivity of aluminium = 2,825 x 10-6 Ocm
%3D
[S]
QUESTION 3
A de shunt motor after running for several hours on constant mains of 350 V takes a field current
arrow_forward
How they used Least square equation.
Please do not copy.
[It's Engineering based question ,Don't Re-route to Biology]
arrow_forward
The number line below shows a value on a log scale.
10-5 10 103 102 10-1 100 101 10² 103 104 105
What is, approximately, the value of the point shown on the number line? x =
Question Help: D Video D Post to forum
Submit Question
arch
米
11
144
14
24
41
%23
&
3
T
Y
K
01
96
近
R
EI
arrow_forward
The orthographic views of an object are
shown below.
a) Draw its isometric drawing using a pencil.
Provide all important dimensions on your
isometric drawing.
b) You need to take pictures of all main
steps and need to provide a step-by-step
method to draw isometric drawing
accompanied by pictures.
307303030 |
20
60
15
15
55 30
20
60
+
27.5
4
25
47.5
25
R20
20
T
15
60
016
120
R30
120
120
30
arrow_forward
NUMERICAL METHOD
PLEASE FOLLOW THE INSTRUCTION THANKS
PLEASE ANSWER QUICKLY
arrow_forward
The graph shows data gathered from a series of Charpy impact tests on a tempered 4340 steel alloy. Determine the temperature corresponding to the 95% bound of maximum
impact energy.
Impact Energy [J]
0
-250
Answer:
-200
dºvo Vo
Tempered 4340 Steel Alloy
-150
-100
Temperature [C]
(688)
+
IT
a 5
-50
120
70
60
50
20
10
0
arrow_forward
Instrumentation & Measurements
This homework measures your capability to design/analyze various components/variables of ameasurement system based on what you have studied.
Question is Attached in image. Thank you.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education
Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
Related Questions
- sample calculations 目 File Edit View Insert Format Data To 100% $ % .0 .00 12: fx | A 1 Variable Value Units diameter height m 4 volume m^3 3 The image above shows a section of a Google sheet. What formula should be written in cell B4 to calculate the volume of a cylinder with a diameter value in B2 and height in B3? a) =0.25*PI()*B2^2 * B3 b) =PI()*B2^2 * B3 c) =pi*diameter^2 * height d) =PI*B2^2 * B3 3 5arrow_forwardDon't Use Chat GPT Will Upvote And Give Handwritten Solution Pleasearrow_forwardProjects A and B are mutually exclusive. The minimum attractive rate of return (MARR) is 12%. Using rate of return analysis, which project should be selected? If the image fails to load here, go to https://www.dropbox.com/s/ld6wctqieu8jgwp/ROR.jpg Year 0 1 2 3 4 ROR A - $750 $200 $200 $200 $600 17.68% B - $1,150 $300 $350 $400 $700 16.44% O Project A O Project B O Both Project A and B O Select none of the project. O Insufficient information to make a decision. B-A - $400 $100 $150 $200 $100 13.69%arrow_forward
- The figure shows the normal force on a jumping person as measured using a force table. A: From the graph, determine the weight of the jumping person. B: What is the maximum net force on the jumping person during the jump phase? C: Approximate the average net force during the jumping phase.arrow_forwardthis is a practice problem, not a graded assignmentarrow_forwarde IY: %VY OLD ? د ميکانيك شهري 2021.pdf UNIVERSITY OF BASRAH - COLLEGE OF ENGINEERING DEPARTMENT OF CIVIL ENGINEERING Subject: Engineering Mechanics-Static Class: 1st year, 1st term Exam. : Semester Date: 16/3/2021 Examiner: Dr. Mazin, Dr. Aqeel, Dr.Ahid and Dr.Jaffar Time: 1.5Hours Q1] (10 Marks) A- In Fig.A , If the resultant force acting on the bracket is to be 642 N directed along the positive x axis, determine the magnitude of F. B- In Fig.B , Determine the magnitude of the resultant force acting on the screw eye and its direction measured clockwise from the x axis. C- In Fig.C , Resolve the 100N force into components along the u and v axes, and determine the magnitude of each of these components. D- In Fig.D, Determine the moment of the force about point O. 300 N 60N 25° 32 45° 60° 505 N 50° 40N Fig. A 50 N Fig. B 400 N 100N 28° 18 2.12 m Fig. C 2.12 m Fig.D Q2] (10 Marks) A- In Fig.A , Replace the loading system by an equivalent resultant force and specify where the resultant's…arrow_forward
- - Moos X O CIVL3106_yahiaz_sprir x Part 1 b Answered: soil mechar x elearn.squ.edu.om/mod/quiz/attempt.php?attempt3D2055593&cmid=903343 IO YouTube Maps التعلم القبلي G IG SYSTEM (ACADEMIC) raur. p Time le From the figure below determine Cc (compression index) 1.9 1.7 1.5 1.3 1.1 0.9 0.7 0.5 + 10 100 1000 Pressure (kPa) Paragraph BI Void ratio !!arrow_forwardPlease help me to Draw an isometric sketch of the componentarrow_forwardI need the answer as soon as possiblearrow_forward
- What would be the analysis of the given table or graph?arrow_forwardkamihq.com/web/viewer.html?state%=D%7B"ids"%3A%5B"1vSrSXbH_6clkKyVVKKAtzZb_GOMRwrCG"%5D%... lasses Gmail Copy of mom it for.. Маps OGOld Telephone Ima. Preview attachmen... Kami Uploads ► Sylvanus Gator - Mechanical Advantage Practice Sheet.pdf rec Times New Roman 14px 1.5pt BIUSA A Xa x* 三三 To find the Mechanical Advantage of ANY simple machine when given the force, use MA = R/E. 1. An Effort force of 30N is appliled to a screwdriver to pry the lid off of a can of paint. The screwdriver applies 90N of force to the lid. What is the MA of the screwdriver? MA =arrow_forwardLab 2-Measurement Asynch - Tagged.pdf Page 4 of 7 ? Part I: Taking Measurements & Estimating Uncertainties for a single measurement www.stefanelli.eng.br The mass of the object is_ 0 i Parts on a tripie peam palance 0 0 10 20 30 1 100 2 3 40 200 4 +/- 50 60 70 5 300 7 400 80 Qv Search 8 90 9 500 100 9 10 g www.stefanelli.eng.brarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY
Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education
Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY