Help using Base SAS procedures

Restrict statement in PROC REG

Reply
Occasional Learner
Posts: 1

Restrict statement in PROC REG

Bonjour,

 

Dans une PROC REG, je souhaite savoir s'il est possible de spécifier à la constante du modèle d'être inférieure à 1.

 

Le statement du type RESCTRICT intercept < 1 ne semble pas fonctionner... 

 

Merci d'avance pour votre aide.

Valued Guide
Posts: 820

Re: Restrict statement in PROC REG

The RESTRICT statement allows only equality constraints, not inequality constraints.

 

 

Super User
Posts: 9,766

Re: Restrict statement in PROC REG

Or you could use SAS/OR  or  SAS/IML to get it.
Post your question at OR or IML forum, and explain your question in English.

SAS Super FREQ
Posts: 3,538

Re: Restrict statement in PROC REG

[ Edited ]

See this SAS NOTE about restricting model parameters. You cannot use the RESTRICT statement in PROC REG to specify an upper bound, but other procedures allow it. For example, to ensure that the intercept term is not negative, you can use

proc fmm data=sashelp.class;
model weight = height;
restrict int 1 >= 0;
run;

 For your problem, use

restrict int 1 <= 1;

Ask a Question
Discussion stats
  • 3 replies
  • 181 views
  • 0 likes
  • 4 in conversation