You will start by considering the data set in the proj2-2.txt file on BlackBoard. The data set contains SEX (1=female; 2=male), PEFR in l/min and height in cm.
1. Make a scatter plot of PEFR versus height.
2. Fit the simple linear regression of PEFR on height.
3. What is the estimated slope (with CI) and the interpretation of
this estimate.
4. What is the standard deviation around the line (with CI) and the
interpretation of this estimate.
5. Estimate (with CI) the mean PEFR with height 170 cm.
sex height PEFR
1 181 522
1 168 440
1 163 428
1 171 537
1 177 513
1 169 510
1 161 383
1 170 455
1 158 440
1 161 461
1 163 370
1 155 503
1 171 430
1 172 442
1 168 595
1 160 415
1 167 455
1 167 500
1 163 548
1 172 463
1 155 475
1 165 485
1 174 540
1 167 415
1 162 475
1 172 490
1 161 470
1 155 450
1 162 450
1 174 540
1 161 475
1 166 430
1 166 510
1 161 470
1 168 430
1 167 470
1 166 440
1 164 485
1 162 550
1 176 535
1 166 485
1 160 360
1 161 480
1 168 480
2 181 580
2 170 560
2 171 460
2 184 611
2 184 600
2 188 590
2 186 650
2 187 600
2 181 630
2 181 670
2 177 515
2 167 470
2 182 550
2 172 620
2 190 640
2 178 680
2 184 600
2 170 510
2 174 550
2 167 530
2 178 530
2 182 590
2 176 480
2 175 620
2 181 640
2 168 510
2 178 635
2 174 616
2 181 547
2 168 560
2 184 585
2 188 665
2 189 540
2 177 610
2 182 529
2 174 550
2 180 545
2 178 540
2 177 792
2 170 553
2 177 530
2 177 532
2 172 480
2 176 530
2 177 550
2 164 540
2 181 570
2 178 430
2 167 598
2 171 473
2 177 480
2 171 550
2 184 540
2 183 628
2 172 550
2 181 600
2 170 547
2 171 575
Here I attach the R code
q=read.csv(file.choose())
q
m=lm(q$PEFR~q$height)
summary(m)
plot(q$PEFR,q$height)
The scatter plot is given by
2. Fit the simple linear regression of PEFR on height.
PEFR= -469.9110+5.7846*height
3) The estimated slope is 5.7846. if the height is increased by one unit then the PEFR is increases by 5.7846 units
4)From the output the standard deviation around the slope is 0.6741 and around the intercept is 116.3125. the standard deviation shows that the estimated values will have a variation around those units.
5)height =170
PEFR= -469.110+(5.7846*170) = 541.272
You will start by considering the data set in the proj2-2.txt file on BlackBoard. The data set contains SEX (1=female; 2=male), PEFR in l/min and height in cm. 1. Make a scatter plot of PEFR versus...
Maintaining a healthy weight is important for women’s health. Some physicians recommend being back to your pre-pregnancy weight six months after giving birth. Public health officials are interested in whether this is a realistic goal. Do the women in North Carolina weigh more than their pre-pregnancy weight six months postpartum? In other words, is the six months post-pregnancy weight greater than their pre-pregnancy weight? Use a paired samples t-test to compare pst6wght (variable 1) and prewght (variable 2). This uses...
You are the Operations Manager for a trailer manufacturing company On the Plant Information tab you have the production results from 2 manufacturing plants that belong to your company The two plants make the same trailers and have very similar people and processes, but the number of trailers they produce each day is not the same The company President has told you that she is worried about production. She gives you no other details about what "worried" means You decide...
Sample A SUBJ WTPRE WTPST Sa SEX WTLOSS var 1 165 160 M -5 2 202 200 M -2 3 256 259 M 3 4 155 156 M 1 5 175 162 M -13 6 180 187 M 7 174 172 M -2 8 136 138 M 2 9 168 162 M -6 10 155 155 M 0 11 220 205 M - 15 12 163 153 M -10 13 159 150 M -9 14 253 255 F 15 138...
data: (copy and paste in excel to view columns in alignment) Sample Repair Time (days) 1 12 2 17 3 9 4 16 5 10 6 18 7 12 8 14 9 15 10 14 11 14 12 8 13 11 14 10 15 8 16 8 17 14 18 12 19 14 20 13 21 12 22 15 23 15 24 10 25 24 26 17 27 13 28 15 29 13 30 15 31 36 32 40 33 ...
In C++ Programming: Using a single for loop, output the even numbers between 2 and 1004 (inclusive) that iterates (loops) exactly 502 times. The outputted numbers be aligned in a table with 10 numbers per row. Each column in the table should be 5 characters wide. Do not nest a loop inside of another loop. Hint: First create and test the code that output the numbers all on one line (the command line will automatically wrap the output to new...
33 On May 6, Jim Ryan borrowed $14,000 from Lane Bank at 7 % interest. Jim plans to repay the loan on March 11. Assume the loan is on ordinary interest. How much will Jim repay on March 11? (Use Days in a year table) (Round your answer to the nearest cent.) Jm repay etbook 7-1 TABLE Exact days-in-a-year calendar (excluding leap year)" Day of month 30 31 30 31 28 31 30 31 31 30 31 31 Dec Mar...
Need help with b,c and d. A30 fx III. A B с 78 79 TOTAL LIABILITIES 80 81 b) In the next 3 months the following accounting events happened to the company (the VAT is 25% in each 82 event wherever it is possible). Record the accounting events in the books! (24p) 83 84 85 86 1. The owners opened a bank account and paid 300.000 K HUF in as a startup capital to launch the business. 87 88 2....
Problem #1: TO SELECT THE MOST ECONOMICAL Wio SHAPE COLUMN ZO FEET IN HEIGHT SUPPORT AH AXIAL LORD OF 370 KIPS using soksi STEEL! ASSUME A FIXED BASE ANDA PINGED TOP (CASE C) WIDE FLANGE SHAPES HP Axis Y-Y Theoretical Dimensions and Properties for Designing Flange Axis X-X | Weight Area Depth Web Section per of of Thick- Thick- Number Foot Section Section Width S 'T Sy Ty ness ness < * A by tw in. in. in.' in. in....
need help to complete this java program // add appropriate import statements here. // These imports you can leave as is. import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.canvas.Canvas; import javafx.scene.canvas.GraphicsContext; import javafx.scene.paint.Color; import javafx.stage.Stage; /** @author yourAccountNameHere */ public class ConnectTheDots extends Application { /* * Do not add code to main(). Add it below in connectTheDots instead. */ public static void main(String[] args) { launch(args); } /*...
Create three or more MySQL Data Control language (DCL) Statements using the Youth League Database. 1. A Create new user statement for the database 2. A statement that grants privileges to the new user 3. A statement that revokes privileges 1. A SQL Text File containing the SQL commands to create the database, create the table, and insert the sample test data into the table. 2. A SQL Text File containing the DCL SQL Statements. eted hemas Untitled Limit to...