Resources

Example 2 for PROC RELIABILITY


/****************************************************************/
/*          S A S   S A M P L E   L I B R A R Y                 */
/*                                                              */
/*    NAME: RELEX2                                              */
/*   TITLE: Example 2 for PROC RELIABILITY                      */
/* PRODUCT: QC                                                  */
/*  SYSTEM: ALL                                                 */
/*    KEYS: reliability, lifetime data                          */
/*   PROCS: RELIABILITY                                         */
/*    DATA:                                                     */
/*                                                              */
/* SUPPORT: sasgjj                                              */
/*     REF: PROC RELIABILITY, EXAMPLE 2.                        */
/*    MISC:                                                     */
/****************************************************************/

data Art;
   input Sysid $ Time Cost;
   datalines;
sys1 19 2
sys1 39 2
sys1 42 -1
sys2 8  2
sys2 14 1
sys2 26 1
sys2 33 -1
sys3 18 3
sys3 29 -1
sys4 16 2
sys4 2  1
sys4 20  -1
sys4 8  1
sys5 16 -1
sys6 5 3
sys6 12 1
sys6 12 -1
;
proc reliability data=Art;
   unitid Sysid;
   mcfplot Time*Cost(-1) ;
run;