Previous Page | Next Page

The RELIABILITY Procedure

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 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 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 containing 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

The following tables list keywords available in the INSET statement to display summary statistics, distribution parameters, and distribution fitting information.

Table 12.8 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 12.9 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

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 12.10 Distribution Parameters

Keyword

Secondary

Description

 

Keyword

 

EXPONENTIAL

SCALE

scale parameter

 

THRESHOLD

threshold parameter

 

MEAN

expected value

EXTREME | EV

LOCATION

location parameter

 

SCALE

scale 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

The following tables list INSET statement options that control the appearance of the inset box.

The following options control the appearance of the box when you use traditional graphics.

Table 12.11 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. The REFPOINT= option specifies which corner of the inset frame you have specified with coordinates 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.

The following options control the appearance of the box when you use ODS graphics.

Table 12.12 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)

The following options 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 12.13 Text Enhancement Options (Traditional Graphics)

Option

Option Description

FONT=font

software font for text

HEIGHT=value

height of text

The following options 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 12.14 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

Previous Page | Next Page | Top of Page