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
;
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.
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
If you used PROC REG, then you need to add the CLB option into the MODEL statement thusly:
model y=x9/clb;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.