BookmarkSubscribeRSS Feed
lulube
Fluorite | Level 6

Hello,

I have a little problem. I have a new model where I deleted the intercept because I computed my own. But it seems like SAS is doing as it is a variable, because it counts 4 DDL :

int is the intercept that I computed :

 

proc reg data=data;
model a= int b c d /noint;
run;

How can I do ?

Thanks for your help 😉

Lucie

3 REPLIES 3
PaigeMiller
Diamond | Level 26

Do you mean that you want to compute a regression model where the intercept is supposed to be fixed at some predetermined value, rather than allowing SAS to compute whatever intercept is given by the least squares procedure??

 

I think you want to use the RESTRICT statement in PROC REG.

--
Paige Miller
lulube
Fluorite | Level 6

Yes that's what I meant

lulube
Fluorite | Level 6

So I tried to use "the restrict" that you talked about

proc reg data=data; 
model a= int b c d; 
restrict int=intercept; 
run;

 

but that doesn't solve the problem, because I can't do the restrcition if int is not in the model.

Thus I have 4 variables int, b, c and d and an intercept that is equal to int

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 417 views
  • 0 likes
  • 2 in conversation