INSET
<keyword-list> </ options> ;
The box or table of summary information produced on plots made with the CDFPLOT, IPPPLOT, LPREDPLOT, or PREDPPLOT statement is called an inset. You can use the INSET statement to customize both the information that is printed in the inset box and the appearance of the inset box. To supply the information that is displayed in the inset box, you specify keywords corresponding to the information you want shown. For example, the following statements produce a predicted probability plot with the number of trials, the number of events, the name of the distribution, and the estimated optimum natural threshold in the inset.
proc probit data=epidemic; model r/n = dose; predpplot; inset nobs ntrials nevents dist optc; run;
By default, inset entries are identified with appropriate labels. However, you can provide a customized label by specifying the keyword for that entry followed by the equal sign (=) and the label in quotes. For example, the following INSET statement produces an inset containing the number of observations and the name of the distribution, labeled “Sample Size” and “Distribution” in the inset.
inset nobs='Sample Size' dist='Distribution';
If you specify a keyword that does not apply to the plot you are creating, then the keyword is ignored.
The options control the appearance of the box.
If you specify more than one INSET statement, only the first one is used.
Table 75.11 and Table 75.12 list keywords available in the INSET statement to display summary statistics, distribution parameters, and distribution fitting information.
Table 75.11: Summary Statistics
NOBS |
Number of observations |
NTRIALS |
Number of trials |
NEVENTS |
Number of events |
C |
User-input threshold |
OPTC |
Estimated natural threshold |
NRESPLEV |
Number of levels of the response variable |
Table 75.12: General Information
CONFIDENCE |
Confidence coefficient for all confidence intervals |
DIST |
Name of the distribution |
Table 75.13 and Table 75.14 list the options available in the INSET statement.
Table 75.13: Color and Pattern Options
CFILL=color |
Specifies color for filling box |
CFILLH=color |
Specifies color for filling box header |
CFRAME=color |
Specifies color for frame |
CHEADER=color |
Specifies color for text in header |
CTEXT=color |
Specifies color for text |
Table 75.14: General Appearance Options
FONT=font |
Specifies software font for text |
HEIGHT=value |
Specifies height of text |
HEADER=’quoted string’ |
Specifies text for header or box title |
NOFRAME |
Omits frame around box |
POS= value |
|
<DATA | PERCENT> |
Determines the position of the inset. The value can be a compass point (N, NE, E, SE, S, SW, W, NW) or a pair of coordinates (x, y) enclosed in parentheses. The coordinates can be specified in axis percentage units or axis data units. |
REFPOINT= name |
Specifies the reference point for an inset that is positioned by a pair of coordinates with the POS= option. You use the REFPOINT= option in conjunction with the POS= coordinates. The REFPOINT= option specifies which corner of the inset frame you have specified with coordinates (x, y), and it can take the value of BR (bottom right), BL (bottom left), TR (top right), or TL (top left). The default is REFPOINT=BL. If the inset position is specified as a compass point, then the REFPOINT= option is ignored. |