BookmarkSubscribeRSS Feed
Mbs270
Obsidian | Level 7

I plan on using proc reg to do multiple linear regression. I need to set a constraint on the coefficients SAS arrives at.

If Y = C1X1 + C2X2 + C3X3 + ..., I need the constraint that C1 > C2 > C3 ....

I've read about the restrict statement and proc calis but am not sure which to use. Thanks in advance.

5 REPLIES 5
PaigeMiller
Diamond | Level 26

There is no such constraint C1 > C2 > C3 ... possible in PROC REG. The only constraints possible in PROC REG are to see if a linear combination of regression coefficients is equal to a specific value (not greater than a specific value).

 

I'm not very familiar with PROC CALIS, but it appears that such a constraint is possible there.

 

 

--
Paige Miller
Mbs270
Obsidian | Level 7

Can anyone offer insights on using proc calis to do what I want? Cannot find syntax examples for what I want to do on the internet.

Ksharp
Super User

I remembered @Rick_SAS has written a blog about it. Check PROC HPGLM, GENMOD , HPREG , HPGLMSELECT

Rick_SAS
SAS Super FREQ

I believe you can use the RESTRICT statement in PROC HPGENSELECT. See the SAS Note for this situation.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 1039 views
  • 0 likes
  • 4 in conversation