BookmarkSubscribeRSS Feed
NiceToBeHere
Fluorite | Level 6

How can I run a non linear regression with regularization?

 

Thanks

7 REPLIES 7
Ksharp
Super User

PROC ADAPTATIVE

PROC LOESS

PROC GAML

PROC GAM

NiceToBeHere
Fluorite | Level 6

Hi,

 

Thanks - I would like to clarify my question:

I would like to run a parametric model, it can be linear or non linear but I would like to ensure that the coefficients are positive and that they have small magnitutes.

If I understand correctly, the methods you have mentioned are non parametric.

 

Thanks

Ksharp
Super User

OK. You might want check EFFECT statement.

Here is a blog written by  @Rick_SAS . You could find more blog about non-linear regression in his blog.

 

http://blogs.sas.com/content/iml/2017/04/19/restricted-cubic-splines-sas.html

NiceToBeHere
Fluorite | Level 6

Thanks for the reply - 

Can you point me to any tutorial that teaches the syntax and capabilties of these regression models and others?

Ksharp
Super User

I would like to leave it to @Rick_SAS

Rick_SAS
SAS Super FREQ

Can you point me to any tutorial that teaches the syntax and capabilties of these regression models and others?

 

For parametric linear models, I recommend the GLMSELECT and HPGENSELECT procedures. The HPGENSELECT procedure provides link functions which enable you to model a variety of response distributions, such as binary, binomial, Poisson, etc. The GLMSELECT procedure supports the EFFECT statement which enables you to use splines to model nonlinear relationships in the data. (A spline model is not really parametric in the usual sense, so might be what you need when you say "nonlinear.")   Both procedures permit you to use regularization methods that shrink the coefficients of some variables to zero, thus resulting in a parsimonious model.

 

If you want a PARAMETRIC but NONLINEAR regression model, then PROC NLMIXED is the best option. This SAS Note shows how to set up a penalized likelihood function.

 

For reference, see the previous SAS Note, which includes many links to reference material.  Also see the article about penalized regression by Funde Gunes, which includes references at the end. 

Rick_SAS
SAS Super FREQ

Can you point me to any tutorial that teaches the syntax and capabilties of these regression models and others?

 

For parametric linear models, I recommend the GLMSELECT and HPGENSELECT procedures. The HPGENSELECT procedure provides link functions which enable you to model a variety of response distributions, such as binary, binomial, Poisson, etc. The GLMSELECT procedure supports the EFFECT statement which enables you to use splines to model nonlinear relationships in the data. (A spline model is not really parametric in the usual sense, so might be what you need when you say "nonlinear.")   Both procedures permit you to use regularization methods that shrink the coefficients of some variables to zero, thus resulting in a parsimonious model.

 

If you want a PARAMETRIC but NONLINEAR regression model, then PROC NLMIXED is the best option. This SAS Note shows how to set up a penalized likelihood function.

 

For reference, see the previous SAS Note, which includes many links to reference material.  Also see the article about penalized regression by Funde Gunes, which includes references at the end. 

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 choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 7 replies
  • 1430 views
  • 0 likes
  • 3 in conversation