Getting Started Example 6 for PROC RELIABILITY
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: RELGS6 */
/* TITLE: Getting Started Example 6 for PROC RELIABILITY */
/* PRODUCT: QC */
/* SYSTEM: ALL */
/* KEYS: reliability, lifetime data */
/* PROCS: RELIABILITY */
/* DATA: */
/* */
/* SUPPORT: sasgjj */
/* REF: PROC RELIABILITY, INTRODUCTORY EXAMPLE 6. */
/* MISC: */
/****************************************************************/
data valve;
input id Days value @@;
label Days = 'Time of Replacement (Days)';
datalines;
251 761 -1 252 759 -1 327 98 1 327 667 -1
328 326 1 328 653 1 328 653 1 328 667 -1
329 665 -1 330 84 1 330 667 -1 331 87 1
331 663 -1 389 646 1 389 653 -1 390 92 1
390 653 -1 391 651 -1 392 258 1 392 328 1
392 377 1 392 621 1 392 650 -1 393 61 1
393 539 1 393 648 -1 394 254 1 394 276 1
394 298 1 394 640 1 394 644 -1 395 76 1
395 538 1 395 642 -1 396 635 1 396 641 -1
397 349 1 397 404 1 397 561 1 397 649 -1
398 631 -1 399 596 -1 400 120 1 400 479 1
400 614 -1 401 323 1 401 449 1 401 582 -1
402 139 1 402 139 1 402 589 -1 403 593 -1
404 573 1 404 589 -1 405 165 1 405 408 1
405 604 1 405 606 -1 406 249 1 406 594 -1
407 344 1 407 497 1 407 613 -1 408 265 1
408 586 1 408 595 -1 409 166 1 409 206 1
409 348 1 409 389 -1 410 601 -1 411 410 1
411 581 1 411 601 -1 412 611 -1 413 608 -1
414 587 -1 415 367 1 415 603 -1 416 202 1
416 563 1 416 570 1 416 585 -1 417 587 -1
418 578 -1 419 578 -1 420 586 -1 421 585 -1
422 582 -1
;
proc print data=Valve(obs=20);
run;
proc reliability;
unitid id;
mcfplot Days*value(-1) / nocenprint eventplot;
run;