BookmarkSubscribeRSS Feed
Daily1
Quartz | Level 8
data dummy;
input time 2. mass :4.;
infile datalines;
datalines;
0	6.64
1	6.34
2	6.04
4	5.47
6	4.94
8	4.44
10	3.98
12	3.55
14	3.15
16	2.79
18	2.45
20	2.14
22	1.86
24	1.6
26	1.37
28	1.17
30	0.98
35	0.6
40	0.34
45	0.17
50	0.06
;


a)Write the equation of a straight-line model relating the value of the mass of the spill (y) and the
time (x).
b)Find a 95% confidence interval for the mean mass of all spills with an elapsed time of 15
minutes. Interpret the result
c)Find a 95% prediction interval for the mass of a single spill with an elapsed time of 15 minutes.
Interpret the result.

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Show us what you have tried.

--
Paige Miller
Reeza
Super User

Regression tutorial (code)

https://stats.idre.ucla.edu/sas/webbooks/reg/chapter1/regressionwith-saschapter-1-simple-and-multipl...

 

Regression tutorial (SAS Studio Task)

https://video.sas.com/detail/video/5537540651001/the-linear-regression-task-in-sas%C2%AE-studio?auto...

 

PROC REG documentation - check the example for fully worked examples including code and explanations

https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_reg_syntax01.htm&docsetVersion=15...

 


@Daily1 wrote:
data dummy;
input time 2. mass :4.;
infile datalines;
datalines;
0	6.64
1	6.34
2	6.04
4	5.47
6	4.94
8	4.44
10	3.98
12	3.55
14	3.15
16	2.79
18	2.45
20	2.14
22	1.86
24	1.6
26	1.37
28	1.17
30	0.98
35	0.6
40	0.34
45	0.17
50	0.06
;


a)Write the equation of a straight-line model relating the value of the mass of the spill (y) and the
time (x).
b)Find a 95% confidence interval for the mean mass of all spills with an elapsed time of 15
minutes. Interpret the result
c)Find a 95% prediction interval for the mass of a single spill with an elapsed time of 15 minutes.
Interpret the result.


 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 648 views
  • 1 like
  • 3 in conversation