BookmarkSubscribeRSS Feed
Stopira
Calcite | Level 5

Hey, I am doing a regression analysis course and i need to find the 95% confidence interval of a given data,

but i can't find the code to compute it anywhere.

Please, share with me your ideas

data Football;
input team opponents;
datalines;
10 2205
11 2096
11 1847
13 1903
10 1457
11 1848
10 1564
11 1821
4 2577
2 2476
7 1984
10 1917
9 1761
9 1709
6 1901
5 2288
5 2288
5 2072
6 2861
4 2411
3 2289
3 2203
4 2592
10 1979
6 2048
8 1786
2 2876
0 2560
;

3 REPLIES 3
PaigeMiller
Diamond | Level 26

You can't do a linear regression on this data.

 

You need two variables — an independent (or predictor) variable and a dependent (or response) variable.

 

Your variable TEAM is an identifier and can't be used in a regression equation.

--
Paige Miller
Stopira
Calcite | Level 5

Hey Miller,

I have indeed two variables, one is team and the other one is opponents.( y and x8 in the data below)

and i was able to find beta0 and beta1 . 

I know looking for the 95% Confidence interval for the slope .

I cant the code for 95% CI for slope

Screenshot 2022-01-15 080221.png

PaigeMiller
Diamond | Level 26

If you used PROC REG, then you need to add the CLB option into the MODEL statement thusly:

 

model y=x9/clb;
--
Paige Miller

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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