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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 513 views
  • 1 like
  • 2 in conversation