| The G3GRID Procedure |
| Procedure features: |
| |||||
| Data set: | NUMS (see Using the Default Interpolation Method) | |||||
| Sample library member: | GTGPART |
This example specifies a partial spline interpolation on the GRID statement, using the eight nearest neighbors for computing the estimates of the first, and second derivatives. The output data set, when used in PROC G3D:
generates a more smooth surface plot than the surface plot that results from the default interpolation shown in Using the Default Interpolation Method
does not generate the smoothness of the surface plot that results from the spline interpolation shown in Spline and Smoothing Interpolations
Surface Plot using Partial Spline Interpolation (gtgpart)
![[A Surface Plot Generated After Partial Interpolation]](images/gtgpart.gif)
| |
goptions reset=all border; |
| |
proc g3grid data=nums out=partial;
grid y*x=z / partial
near=8
axis1=-5 to 5 by .5
axis2=-5 to 5 by .5;
run; |
| |
title "Surface Plot using Partial Spline Interpolation"; |
| |
proc g3d data=partial; plot y*x=z; run; quit; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.