BookmarkSubscribeRSS Feed
tania_hf
Calcite | Level 5

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.

3 REPLIES 3
mkeintz
PROC Star

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

 

 

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
Ksharp
Super User
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.

Rick_SAS
SAS Super FREQ

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;

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 3 replies
  • 1356 views
  • 0 likes
  • 4 in conversation