Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The RELIABILITY Procedure

INSET Statement

INSET keyword-list< / options >;


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 30.7: Summary Statistics
keyword description
Nsample size
NFAILnumber of failures for probability plots
NEVENTSnumber of events or repairs for MCF plots
NEVENTS1number of events or repairs in the first group for MCF difference plots
NEVENTS2number of events or repairs in the second group for MCF difference plots
NUNITSnumber of units or systems for MCF plots
NUNITS1number of units or systems in the first group for MCF difference plots
NUNITS2number of units or systems in the second group for MCF difference plots

Table 30.8: General Information
keyword description
CONFIDENCEconfidence coefficient for all confidence intervals or for the Weibayes fit
FITmethod used to estimate distribution parameters for probability plots
RSQUARER2 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 30.9: Distribution Parameters
keyword secondary keyword description
EXPONENTIALSCALEscale parameter
 THRESHOLDthreshold parameter
 MEANexpected value
EXTREME | EVLOCATIONlocation parameter
 SCALEscale parameter
 MEANexpected value
LOGISTIC | LOGITLOCATIONlocation parameter
 SCALEscale parameter
 MEANexpected value
LOGLOGISTIC | LLOGITLOCATIONlocation parameter
 SCALEscale parameter
 THRESHOLDthreshold parameter
 MEANexpected value
LOGNORMALLOCATIONlocation parameter
 SCALEscale parameter
 THRESHOLDthreshold parameter
 MEANexpected value
LOGNORMAL10LOCATIONlocation parameter
 SCALEscale parameter
 THRESHOLDthreshold parameter
 MEANexpected value
NORMALLOCATIONlocation parameter
 SCALEscale parameter
 MEANexpected value
WEIBULLSCALEscale parameter
 SHAPEshape parameter
 THRESHOLDthreshold parameter
 MEANexpected value

Options Used in the INSET Statement

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

Table 30.10: General Appearance Options
Option Option Description
HEADER='quoted string'specifies text for header or box title
NOFRAMEomits 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 percent units or axis data units.
REFPOINT= namespecifies 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.

Table 30.11: Text Enhancement Options
Option Option Description
FONT=fontsoftware font for text
HEIGHT=valueheight of text

Table 30.12: Color and Pattern Options
Option Option Description
CFILL=colorcolor for filling box
CFILLH=colorcolor for filling box header
CFRAME=colorcolor for frame
CHEADER=colorcolor for text in header
CTEXT=colorcolor for text

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.