BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
MadQuidd
Obsidian | Level 7

I am woring in a data set and have to create a confidence interval for mean spring enrollment when fall enrollment is 290.

I dont understand how to go about doing this especially when the fall enrollment is never 290.

the data is as follows:

data problem2a;

input
Ayear Fall Spring;
if Ayear = 2003 then delete;
datalines;
2001 259 246
2002 301 206
2003 343 288
2004 307 215
2005 286 230
2006 273 247
2007 248 308
2008 292 271
2009 250 285
2010 278 286
2011 303 254
;
run;
proc print data=problem2a;
run;

 

I understand how to do a basic confidence interval on the enitre thing but not how to specify it. 

this is the code I used for a basic CI but I dont think it in doing the right thing.

 

proc reg data=problem2a;
model spring = fall /clm cli;
run;

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Add an additional record for a dummy year (other than one presented) with the value for fall of 290 and a missing spring value.

 

Look at a regression procedure such as Proc reg and model with spring as the dependent and fall as the independent:

 

Ask for the predicted values and confidence limits. There will be results in the output to predict and the interval.

 

I'm not providing exact solution as your dataset name Problem2a looks like homework and you'll learn more looking up the syntax.

 

Since there doesn't seem to be a requirement for predict if the fall enrollment in 2012 was 309 I would be very tempted to leave Year out of the model.

View solution in original post

2 REPLIES 2
ballardw
Super User

Add an additional record for a dummy year (other than one presented) with the value for fall of 290 and a missing spring value.

 

Look at a regression procedure such as Proc reg and model with spring as the dependent and fall as the independent:

 

Ask for the predicted values and confidence limits. There will be results in the output to predict and the interval.

 

I'm not providing exact solution as your dataset name Problem2a looks like homework and you'll learn more looking up the syntax.

 

Since there doesn't seem to be a requirement for predict if the fall enrollment in 2012 was 309 I would be very tempted to leave Year out of the model.

Reeza
Super User
This is known as scoring - you can looking up scoring with respect to PROC REG or PROC SCORE.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 2 replies
  • 665 views
  • 1 like
  • 3 in conversation