SAS.GRAPH 9.1 Reference, Volumes I and II

Requirements: Exactly one GRID statement is required.

Reminder: The procedure can include the SAS/GRAPH BY statement.

Supports: Output Delivery System (ODS)

PROC G3GRID <DATA= input-data-set >

PROC G3GRID Statement

Identifies the input data set. Optionally specifies one or two output data sets.

Requirements: An input data set is required.

Syntax

PROC G3GRID < DATA= input-data-set >

Options

DATA= input-data-set

OUT= output-data-set

OUTTRI= output-data-set

GRID Statement

Specifies the three numeric variables for interpolation or smoothing. Optionally specifies the number of observations ( x and y values) in the output data set; output values for the two horizontal variables x,y ; and the interpolation method for the vertical variables.

Requirements: Exactly one grid request is required.

Syntax

GRID grid-request </ option(s) >;

grid-request must be:

grid-request must be

y*x=z(s)

option(s) can be one or more options from any or all of the following categories:

Required Arguments

y*x=z(s)

Although the GRID statement can specify only two horizontal variables, it can include multiple vertical variables. Separate vertical variables with blanks:

grid x*y=z w u v;

Options

AXIS1= ascending-value-list

AXIS2= ascending-value-list

JOIN

NAXIS1= n

NAXIS2= n

NEAR= n

NOSCALE

PARTIAL

SMOOTH= ascending-value-list

SPLINE

Controlling Observations in the Output Data Set

By default, the G3GRID procedure produces a data set with 121 observations for combinations of 11 values for each of the horizontal variables, x and y . To create a data set with a different number of observations, use the GRID statement s NAXIS1= or NAXIS2= options to specify the number of the values of y or x , respectively. Or, use the GRID statement s AXIS1= or AXIS2= options to specify the actual values for y or x , respectively.

Table 47.1 on page 1336 shows the number of observations that will be in the output data set if you use any of these options.

Table 47.1: Number of Observations Contained in the Output Data Set

Options Specified

Number of Observations in Output Data Set

None

121

AXIS1=

(number of values for AXIS1=) * 11

AXIS2=

(number of values for AXIS2=) * 11

NAXIS1=

(value of NAXIS1=) * 11

NAXIS2=

(value of NAXIS2=) * 11

AXIS1=, AXIS2=

(number of values for AXIS1=) * (number of values for AXIS2=)

AXIS1=, NAXIS1=

(number of values for AXIS1=) * 11

AXIS1=, NAXIS2=

(number of values for AXIS1=) * (value of NAXIS2=)

AXIS2=, NAXIS1=

(number of values for AXIS2=) * (value of NAXIS1=)

AXIS2=, NAXIS2=

(number of values for AXIS2=) * 11

NAXIS1=, NAXIS2=

(value of NAXIS1=) * (value of NAXIS2=)

If you specify multiple smoothing parameters, the number of observations in the output data set will be the number shown in Table 47.1 on page 1336 multiplied by the number of smoothing values that you specify in the SMOOTH= option. If you use BY- group processing, multiply the number in the table by the number of BY groups.

Depending on the shape of the original data and the options that you specify, the output data set may contain values for the vertical ( z ) values that are outside of the range of the original values in the data set.

Категории