turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS/GRAPH and ODS Graphics
- /
- Plot 3D non linear regression surface.

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

12-06-2012 12:30 PM

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

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

12-06-2012 02:19 PM

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.