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

Hello,

 

Is their a method to produce written 95% CI in proc gam? I can get the confidence bands on the displayed figure but would like the numbers as well. Thank you 

ods graphics on;
proc gam data= fi.analysis plots=component(clm);
	model Impact_Factor = spline(FI_RFI) / dist=normal;
run; quit;
ods graphics off;
1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

Do not use PROC GAM. That is an old procedure that has been replaced by PROC GAMPL, which is more efficient and can scale to large data. In PROC GAMPL, you can use the 

proc gampl data= sashelp.shoes plots=Components;
   model Sales = spline(Inventory) / dist=normal;
   output out=GamOut pred lower upper;
run;

View solution in original post

2 REPLIES 2
sbxkoenk
SAS Super FREQ

See the dataset work.SmoothingComponentPlot.

ods graphics on;
*ods trace on;
ods output SmoothingComponentPlot=work.SmoothingComponentPlot;
proc gam data= sashelp.shoes plots=component(clm);
	model Sales = spline(Inventory) / dist=normal;
run; quit;
ods graphics off;

Note there is also PROC GAMPL.

PROC GAMPL Contrasted with PROC GAM

https://go.documentation.sas.com/doc/en/statcdc/14.3/statug/statug_hpgam_overview02.htm

 

Or maybe you want to consider PROC LOESS?

 

Koen

Rick_SAS
SAS Super FREQ

Do not use PROC GAM. That is an old procedure that has been replaced by PROC GAMPL, which is more efficient and can scale to large data. In PROC GAMPL, you can use the 

proc gampl data= sashelp.shoes plots=Components;
   model Sales = spline(Inventory) / dist=normal;
   output out=GamOut pred lower upper;
run;

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!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 755 views
  • 1 like
  • 3 in conversation