BookmarkSubscribeRSS Feed
Calcite | Level 5



I want to look at the goodness of fit statistics (AIC, BIC etc.) for a linear regression model I have built with Proc Model. I could not use Proc Reg for this model as I had certain constraints (like weight of variable_1 > 20%) that proc reg can not handle. So I am looking to get the fit statistics using Proc Model now. Thanks for helping out.


Obsidian | Level 7
proc glm data=; class ; model / solution; ods output fitstatistics=test2; run; Unfortunately, its not possible with proc model. Try this code snippet and check whether it solves your problem!
Calcite | Level 5

Thanks for your reply. To my knowledge Proc GLM does not allow functionality for adding constraints so it does not solve my problem.

My model framework is:

          Model: y = var1  var2  var3



  • Weight of var1 should be at least 20%, i.e. var1/(var1+var2+var3) >0.2


  •  Weight of var2 should be at least 30% i.e. var2/(var1+var2+var3) >0.3

I can use the Restrict statement in Proc Model to fit models using these constraints, however, this procedure does not output the AIC, BIC and other fit statistics. Proc Reg also does not have the functionality of fitting non-linear or inequality constraints.

So is there any other procedure I can use to fit a model and get the goodness of fit statistics if its not available with Proc model.




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!

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
  • 2 in conversation