BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I find that the "bounds" takes no roles in "proc model" or programming. The following is an example. I want to get the positive solution. But it gives the negative one. Dose anybody has any suggestion?
Notes: (1)You can impose the initial value of x=5. But in general, you do not know the solution and so it is very difficutlt to give a close initial values.
(2)You can replace x by exp(x). But it makes the computing more difficult and sometimes can not get the solution.

data aaaa;
b2=1; b1=-4; b3=-5;
run;
proc model data=aaaa out=ab_1 noprint;
bounds x>0;
dependent x 1;
eq.eq1=b2*x**2+b1*x+b3;
solve x /converge=1e-6 maxiter=200;
run; Message was edited by: HHBB
1 REPLY 1
Bengt_SAS
SAS Employee
PROC MODEL is part of SAS/ETS. If you pose your question in the SAS Forecasting forum

http://support.sas.com/forums/forum.jspa?forumID=28

they should be able to help.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 632 views
  • 0 likes
  • 2 in conversation