Learning SAS? Welcome to the exclusive online community for all SAS learners.

Unable to view results from PUT statement in Proc NLIN

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

Unable to view results from PUT statement in Proc NLIN

Hi, I am just trying to recreate the results in the Example 62.1 Segmented Model

from this link: https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_nlin_sect03...

 

But when I copy and paste the data into my SAS

 

data a;
   input y x @@;
   datalines;
.46 1  .47  2 .57  3 .61  4 .62  5 .68  6 .69  7
.78 8  .70  9 .74 10 .77 11 .78 12 .74 13 .80 13
.80 15 .78 16
 ;

and then the proc nlin 

title 'Quadratic Model with Plateau';
proc nlin data=a;
   parms alpha=.45 beta=.05 gamma=-.0025;
   
   x0 = -.5*beta / gamma;
   
   if (x < x0) then 
        mean = alpha + beta*x  + gamma*x*x;
   else mean = alpha + beta*x0 + gamma*x0*x0;
   model y = mean;

   if _obs_=1 and _iter_ =.  then do;
      plateau =alpha + beta*x0 + gamma*x0*x0;
      put /  x0= plateau=  ;
   end;
   output out=b predicted=yp; 
run;

 I do not show the results from the PUT statement (see below). Any insight? 

 

 

SAS ex_62.1 resultsA.JPGSAS ex_62.1 resultsB.JPG

 

I believe I have the most updated version of SAS (below is from my log):

 

NOTE: Copyright (c) 2016 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software 9.4 (TS1M5)
Licensed to MEDICAL UNIVERSITY OF SOUTH CAROLINA, Site 70085904.
NOTE: This session is executing on the X64_8HOME platform.

 

NOTE: Updated analytical products:

SAS/STAT 14.3
SAS/ETS 14.3
SAS/OR 14.3
SAS/IML 14.3
SAS/QC 14.3


Accepted Solutions
Solution
2 weeks ago
Super User
Posts: 13,889

Re: Unable to view results from PUT statement in Proc NLIN

When I run your code in Display Manager ("Base" SAS) the put statements write to the OUTPUT window not the Results window. You may have to turn the listing destination on to see that output.

View solution in original post


All Replies
Solution
2 weeks ago
Super User
Posts: 13,889

Re: Unable to view results from PUT statement in Proc NLIN

When I run your code in Display Manager ("Base" SAS) the put statements write to the OUTPUT window not the Results window. You may have to turn the listing destination on to see that output.

New Contributor
Posts: 2

Re: Unable to view results from PUT statement in Proc NLIN

Thank you so much! That is exactly where it was posting. 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 130 views
  • 0 likes
  • 2 in conversation