Programming the statistical procedures from SAS

imposing restrictions in linear models

Reply
Occasional Contributor
Posts: 17

imposing restrictions in linear models

Hi,

 

I am using the following code to genrate a restricted regression but its not working, can someone please look into it?

 


proc nln data=temp1 noprint outest=Out_Estimates ;
restrict US_Small_Val + US_Small_Gr + US_Large_Gr + _US_Large_Val = 1;
bounds 0 <= US_Small_Val <= 1;
bounds 0 <= US_Small_Gr <= 1;
bounds 0 <= US_Large_Gr <= 1;
bounds 0 <= _US_Large_Val <= 1;
model AMP_AIT = US_Small_Val US_Small_Gr US_Large_Gr _US_Large_Val /noint;
run;
quit;

Grand Advisor
Posts: 10,052

Re: imposing restrictions in linear models

Describe how it isn't working: No output, error messages, unexpected output? If there are errors or warning you should include them. Anything that may be related to data is going to be purely a guess without your data.

Occasional Contributor
Posts: 17

Re: imposing restrictions in linear models

Its says proc nln procedure not found

Grand Advisor
Posts: 10,052

Re: imposing restrictions in linear models

I assumed you misspelled it in the post:  Proc NLIN most likely.

Grand Advisor
Posts: 16,908

Re: imposing restrictions in linear models

If something isn't 'working' please post your log and error as not working has no informational value. 

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