The SGPLOT Procedure |
PBSPLINE x= numeric-variable y= numeric-variable </ options>; |
option(s) can be one or more options from the following categories:
PBSPLINE options:
ALPHA= numeric-value | |
CLI <= "text-string"> | |
CLIATTRS= style-element | |
CLM <= "text-string"> | |
CLMATTRS= style-element | |
CLMTRANSPARENCY= value | |
CURVELABEL <= "text-string"> | |
CURVELABELLOC= OUTSIDE | INSIDE | |
CURVELABELPOS= MIN | MAX | START | END | |
DATALABEL <= variable> | |
DEGREE= n | |
FREQ= numeric-variable | |
LINEATTRS= style-element <(options)> | (options) | |
MARKERATTRS= style-element <(options)> | (options) | |
MAXPOINTS= n | |
NKNOTS= n | |
NOLEGCLI | |
NOLEGCLM | |
NOLEGFIT | |
NOMARKERS | |
SMOOTH= numeric-value | |
WEIGHT= numeric-variable |
Plot options:
GROUP= variable | |
LEGENDLABEL= "text-string" | |
NAME= "text-string" | |
X2AXIS | |
Y2AXIS |
Required Arguments |
specifies the variable for the x axis.
specifies the variable for the y axis.
Options |
specifies the confidence level for the confidence limits. Specify a number between 0.00 (100% confidence) and 1.00 (0% confidence).
Note: This option has no effect if you do not specify either the CLI option or CLM option.
Default: | .05 |
creates prediction limits for the individual predicted values. The optional text string overrides the default legend label for the prediction limits.
specifies the appearance of the individual value prediction limits by using an ODS style element.
Default: | The default appearance of the prediction limits is specified by the GraphPredictionLimits style element in the current style. |
creates confidence limits for the mean predicted values. The optional text string overrides the default legend label for the confidence limits.
specifies the appearance of the mean value confidence limits by using an ODS style element.
Default: | The default appearance of the confidence limits is specified by the GraphConfidence style element in the current style. |
specifies the degree of transparency for the confidence limits. Specify a value from 0.0 (completely opaque) to 1.0 (completely transparent).
Note: This option has no effect if you do not specify the CLM option.
Default: | 0.0 |
adds a label for the spline curve. You can also specify the label text. If you do not specify a label, then the label from the Y variable is used.
specifies whether the curve label is placed inside the plot axes (INSIDE) or outside of the plot axes (OUTSIDE).
Default: | INSIDE |
specifies the location of the curve label. Specify one of the following values:
places the curve label at the minimum value for the X axis.
places the curve label at the maximum value for the X axis.
places the curve label at the first point on the curve.
places the curve label at the last point on the curve.
Default: | END |
displays a label for each scatter point. If you specify a variable, the values of that variable are used for the data labels. If you do not specify a variable, then the values of the Y variable are used for the data labels.
Interaction: | This option has no effect if you also specify the NOMARKERS option. |
specifies the degree of the spline transformation.
Default: | 3 |
specifies that each observation is repeated n times for computational purposes, where n is the value of the numeric variable. If n is not an integer, then it is truncated to an integer. If n is less than 1 or missing, then it is excluded from the analysis.
specifies a variable that is used to group the data. A separate plot is created for each unique value of the grouping variable. The plot elements for each group value are automatically distinguished by different visual attributes.
Interaction: | If you specify the GROUP= option in multiple fit plot statements, then the first GROUP= variable is used for all of the fit plots that specify GROUP=. |
specifies a label that identifies the B-spline curve in the legend. By default, the label "Penalized B-Spline" is used with the SMOOTH= value if specified, or else the group value for each B-spline is used.
specifies the appearance of the fitted curve. You can specify the appearance by using a style element or by using suboptions. If you specify a style element, you can additionally specify suboptions to override specific appearance attributes.
options can be one or more of the following:
specifies the color of the line. For more information about specifying colors, see SAS/GRAPH Colors and Images in the SAS/GRAPH: Reference, Second Edition.
Default: |
For ungrouped data, the default color
is specified by the ContrastColor attribute of the GraphFit style element
in the current style.
For grouped data, the default color is specified by the ContrastColor attribute of the GraphData1 ... GraphDatan style elements in the current style. |
specifies the line pattern for the line. You can reference SAS patterns by number or by name. See Line Patterns for a list of line patterns.
Default: |
For ungrouped data, the default line
pattern is specified by the LineStyle attribute of the GraphFit style element
in the current style.
For grouped data, the default line pattern is specified by the LineStyle attribute of the GraphData1 ... GraphDatan style elements in the current style. |
specifies the thickness of the line. You can also specify the unit of measure. The default unit is pixels. See Units of Measurement for a list of the measurement units that are supported.
Default: |
For ungrouped data, the default line
thickness is specified by the LineThickness attribute of the GraphFit style
element in the current style.
For grouped data, the default line thickness is specified by the LineThickness attribute of the GraphData1 ... GraphDatan style elements in the current style. |
specifies the appearance of the markers in the plot. You can specify the appearance by using a style element or by using suboptions. If you specify a style element, you can additionally specify suboptions to override specific appearance attributes.
options can be one or more of the following:
specifies the color of the markers. For more information about specifying colors, see SAS/GRAPH Colors and Images in the SAS/GRAPH: Reference, Second Edition.
Default: |
For ungrouped data, the default color
is specified by the ContrastColor attribute of the GraphDataDefault style
element in the current style.
For grouped data, the default color is specified by the ContrastColor attribute of the GraphData1 ... GraphDatan style elements in the current style. |
specifies the size of the markers. You can also specify the unit of measurement. The default unit is pixels. See Units of Measurement for a list of the measurement units that are supported.
Default: | The default marker size is specified by the MarkerSize attribute of the GraphDataDefault style element in the current style. |
specifies the symbol for the markers. See Marker Symbols for a list of valid marker symbols.
Default: |
For ungrouped data, the default marker
symbol is specified by the MarkerSymbol attribute of the GraphDataDefault
style element in the current style.
For grouped data, the default marker symbol is specified by the MarkerSymbol attribute of the GraphData1 ... GraphDatan style elements in the current style. |
specifies the maximum number of predicted points for the spline curve and for any confidence limits.
Default: | 201 |
specifies a name for the plot. You can use the name to refer to this plot in other statements.
specifies the number of evenly spaced internal knots.
Default: | 100 |
Range: | 1 to 1000 |
hides the legend entry for the individual value prediction limits.
hides the legend entry for the mean value confidence limits.
hides the legend entry for the fit line.
removes the scatter markers from the plot.
specifies a smoothing parameter value. If you do not specify this option, a smoothing value is determined automatically.
specifies that each observation is weighted by a factor of w for computational purposes, where w is the value of the numeric variable. w can be any numeric value. If w is 0, negative or missing, then that observation is excluded from the analysis.
assigns the X variable to the secondary (top) horizontal axis.
assigns the Y variable to the secondary (right) vertical axis.
Details |
For the SMOOTH= option, the smoothing parameter value must be greater than the minimum value that is determined by the following equation:
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.