Schwa
Schwa

Reputation: 139

Calculation of values for confidence bands

I need actual values for the confidence bands for regression lines generated by SAS during PROC REG. SAS does this automatically when plotting, but I need to know the actual values of the range (knowing this for just some sampled x's would be sufficient.) How can I get SAS to report these values?

Upvotes: 0

Views: 135

Answers (1)

Stu Sztukowski
Stu Sztukowski

Reputation: 12909

Use the output out= option and specify the lcl= and ucl= options. This will output variables for lower and upper confidence limits, respectively. The code below outputs a dataset named predicted containing predicted values as pred, lower confidence limits as lower, and upper confidence limits as upper.

proc reg data=sashelp.cars;
    model msrp=horsepower;
    output out=predicted p=pred lcl=lower ucl=upper;
run;

Upvotes: 2

Related Questions