Hi,
You may want to try the following code:
data s;
input wins spending;
datalines;
30 50
35 55
60 57
44 68
. 45
;
proc reg data=s;
model wins=spending;
output out=predict
p=wins_pred
LCL=wins_95LCL
UCL=wins_95UCL ;
proc print data=predict(where=(wins=.)) noobs;
run;
In the output window you'll see predicted wins (wins_pred) for spending=45 along with the lower (wins_95LCL) and upper (wins_95UCL) bounds of 95% CI for an individual prediction.
More about an OUTPUT statement in PROC REG:
http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_reg_sect015.htm
Message was edited by: statsplank
... View more