SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 1 Vol 2

REPAIR PLOT

Name:
    REPAIR PLOT
Type:
    Graphics Command
Purpose:
    Generates a plot of repair times where there may be multiple groups and a censoring time for each group.
Description:
    In reliability studies, it is often necessary to analyze repair times. A first step in analyzing these repair times is to simply plot the repair data.

    The repair data consists of the following:

    1. The repair times.

    2. A system id corresponding to each of the repair times.

    3. If the test continued to run after the last failure time, then a censoring time needs to be included. Note that there should be at most one censoring time for each system.

      The Dataplot convention is to code the repair times as 1 and censoring times as 0.

    The vertical coordinate is the system id and the horizontal coordinates are the repair/censoring times.

    The appearance of the plot can be controlled by appropriate settings for the LINE and CHARACTER commands. The traces (i.e., curves) are defined as follows:

    1. The first trace consists of all the repair times. For this trace, the line setting is typically set to a blank value while the character is set to some non-blank value.

    2. If there are N systems, traces 2 through N+1 correspond to the repair and censoring times for each of these systems. The line settings are typically set to a non-blank value while the character settings are typically set to blank.

    A typical sequence of commands to set the character and line settings would be

      LINES SOLID ALL
      CHARACTER BLANK ALL
      LINE BLANK
      CHARACTER *

    The system id and censoring variables are optional. If you specify a censoring variable, a group variable must be given. If you have a single system with a censoring time, simply create a variable the same length as the response variable that has all values equal to 1. For example,

      LET N = SIZE Y
      LET GROUPID = 1 FOR I = 1 1 N
Syntax 1:
    REPAIR PLOT <y> <x> <cens>
                            <SUBSET/EXCEPT/FOR qualification>
    where <y> is a variable containing repair times;
                <x> is a variable containing the group id's;
                <cens> is a variable containing the censoring values;
    and where the <SUBSET/EXCEPT/FOR qualification> is optional.

    This syntax is used to plot repair times for the case where there multiple systems, but there are no censoring times.

Syntax 2:
    REPAIR PLOT <y> <x>             <SUBSET/EXCEPT/FOR qualification>
    where <y> is a variable containing repair times;
                <x> is a variable containing the group id's;
    and where the <SUBSET/EXCEPT/FOR qualification> is optional.

    This syntax is used to plot repair times for the case where there multiple systems, but there are no censoring times.

Syntax 3:
    REPAIR PLOT <y>             <SUBSET/EXCEPT/FOR qualification>
    where <y> is a variable containing repair times;
    and where the <SUBSET/EXCEPT/FOR qualification> is optional.

    This syntax is used to plot repair times for the case where there is only a single system and there is no censoring time.

Examples:
    REPAIR PLOT Y BATCH CENSOR
    REPAIR PLOT Y BATCH
    REPAIR PLOT Y BATCH CENSOR SUBSET BATCH > 1
Default:
    None
Synonyms:
    None
Related Commands:
    LINES = Sets the type for plot lines.
    CHARACTERS = Sets the type for plot characters.
    MEAN REPAIR FUNCTION PLOT = Generates a mean repair function plot.
    DUANE PLOT = Generates a Duane plot.
    KAPLAN-MEIER PLOT = Generates a Kaplan-Meier plot.
    PLOT = Generates a data or function plot.
Applications:
    Reliability (Repairable Systems)
Implementation Date:
    2006/10
Program:
     
    skip 25
    read tob312.dat  y  x  cens
    .
    tic offset units screen
    tic offset 5 5
    ylimits 1 3
    major ytic mark number 3
    minor ytic mark number 0
    line blank
    char *
    title Repair Plot
    y1label System ID
    x1label System Age
    title case asis
    title offset 2
    label case asis
    .
    repair plot y x cens
        
    plot generated by sample program

Privacy Policy/Security Notice
Disclaimer | FOIA

NIST is an agency of the U.S. Commerce Department.

Date created: 10/12/2006
Last updated: 10/19/2015

Please email comments on this WWW page to alan.heckert@nist.gov.