BookmarkSubscribeRSS Feed
rnmishra
Calcite | Level 5

I have found that a lot of diagnostic plots for non linear regression models can be obtained using the  codes available at the SAS support webiste

http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_nlin_sect039...

ods graphics on;

proc nlin data=contrived bias hougaard

  NLINMEASURES plots(stats=all)=(diagnostics);

  parms alpha=2.0

  gamma=0.0;

  model y = alpha*x1 + exp(gamma*x2);

run;

ods graphics off;

In addition I am interested to plot the 3D regression surface with axes Y, X1 and X2.

My dependent variable is Y and the predictor variables are X1 and X2. My non linear model is similar to the one  given above.

Thanks in advance for your help.

Raghu.

1 REPLY 1
Jay54
Meteorite | Level 14

GIven you can compute the fitted surface as a response Z for an X, Y even grid, you can use the SurfacePlotParm statement in GTL to plot the surface.  The data must be gridded.  If not, use the G3Grid procedure to grid the data.

However, GTL does not have a 3D scatter (point cloud), etc., mainly because there has been no demand.  if you need such 3D plots, please call your request into Tech Support.  GTL does have a BivariateHistogram3D statement.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 1471 views
  • 0 likes
  • 2 in conversation