INSET Statement

The box or table of summary information produced on plots made with the PROBPLOT or MCFPLOT statement is called an inset. You can use the INSET statement to customize the appearance of the inset box and the information that is printed in the inset box. To supply the information that is displayed in the inset box, you specify a keyword that corresponds to the information you want shown. For example, the following statements produce a Weibull plot with the sample size, the number of failures, and the Weibull mean displayed in the inset:

proc reliability data=fan;     
   distribution weibull;       
   pplot lifetime*censor(1);   
   inset n nfail weibull(mean);
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 that contains the sample size and Weibull mean, labeled "Sample Size" and "Weibull Mean" in the inset:

inset n='Sample Size' weibull(mean='Weibull Mean');

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 last one is used.

Keywords Used in the INSET Statement

Table 14.9 through Table 14.11 list keywords available in the INSET statement to display summary statistics, distribution parameters, and distribution fitting information.

Table 14.9 Summary Statistics

Keyword

Description

N

Sample size

NFAIL

Number of failures for probability plots.

NEVENTS

Number of events or repairs for MCF plots.

NEVENTS1

Number of events or repairs in the first group for MCF difference plots.

NEVENTS2

Number of events or repairs in the second group for MCF difference plots.

NUNITS

Number of units or systems for MCF plots.

NUNITS1

Number of units or systems in the first group for MCF difference plots.

NUNITS2

Number of units or systems in the second group for MCF difference plots.

Table 14.10 General Information

Keyword

Description

CONFIDENCE

Confidence coefficient for all confidence intervals or for the Weibayes fit

FIT

Method used to estimate distribution parameters for probability plots

RSQUARE

R square for least squares distribution fit to probability plots

Distribution parameters are specified as distribution-name(distribution-parameters). The following table lists the keywords available.

Table 14.11 Distribution Parameters

Keyword

Secondary

Description

 

Keyword

 

EXPONENTIAL

SCALE

Scale parameter

 

THRESHOLD

Threshold parameter

 

MEAN

Expected value

EXTREME | EV

LOCATION

Location parameter

 

SCALE

Dcale parameter

 

MEAN

Expected value

LOGISTIC | LOGIT

LOCATION

Location parameter

 

SCALE

Scale parameter

 

MEAN

Expected value

LOGLOGISTIC | LLOGIT

LOCATION

Location parameter

 

SCALE

Scale parameter

 

THRESHOLD

Threshold parameter

 

MEAN

Expected value

LOGNORMAL

LOCATION

Location parameter

 

SCALE

Scale parameter

 

THRESHOLD

Threshold parameter

 

MEAN

Expected value

LOGNORMAL10

LOCATION

Location parameter

 

SCALE

Scale parameter

 

THRESHOLD

Threshold parameter

 

MEAN

Expected value

NORMAL

LOCATION

Location parameter

 

SCALE

Scale parameter

 

MEAN

Expected value

WEIBULL

SCALE

Scale parameter

 

SHAPE

Shape parameter

 

THRESHOLD

Threshold parameter

 

MEAN

Expected value

Options Used in the INSET Statement

Table 14.12 through Table 14.15 list INSET statement options that control the appearance of the inset box.

Table 14.12 lists options that control the appearance of the box when you use traditional graphics.

Table 14.12 General Appearance Options (Traditional Graphics)

Option

Option Description

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 enclosed in parentheses. The coordinates can be specified in axis percent 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. name specifies which corner of the inset frame you have specified with coordinates ; 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.

Table 14.13 lists options that control the appearance of the box when you use ODS Graphics.

Table 14.13 General Appearance Options (ODS Graphics)

Option

Option Description

HEADER=’quoted-string’

Specifies text for header or box title.

NOFRAME

Omits frame around box.

POS=value

Determines the position of the inset. The value can be a compass point (N, NE, E, SE, S, SW, W, NW).

Table 14.14 lists options that control the appearance of the text within the box when you use traditional graphics. These options are not available if ODS Graphics is enabled.

Table 14.14 Text Enhancement Options (Traditional Graphics)

Option

Option Description

FONT=font

Software font for text

HEIGHT=value

Height of text

Table 14.15 lists options that control the colors and patterns used in the box when you use traditional graphics. These options are not available if ODS Graphics is enabled.

Table 14.15 Color and Pattern Options (Traditional Graphics)

Option

Option Description

CFILL=color

Color for filling box

CFILLH=color

Color for filling box header

CFRAME=color

Color for frame

CHEADER=color

Color for text in header

CTEXT=color

Color for text