8  Web-Based Analysis with ReliaShiny

8.1 Introduction

All of the analyses in this book require writing R code. ReliaShiny (Govan 2023) removes that requirement; it is a point-and-click Shiny (Chang et al. 2022) web application that exposes the same reliability analysis workflows (life data analysis, reliability growth, accelerated life testing, repairable systems) through a graphical interface. No R programming knowledge is needed to run an analysis.

This chapter introduces ReliaShiny, tours its modules, and explains when to reach for it versus a scripted R workflow.

8.2 Installation and Launch

ReliaShiny is available on CRAN:

install.packages("ReliaShiny")

Once installed, launch the app from the R console:

library(ReliaShiny)
ReliaShiny()

This opens the application in your default web browser. The app runs locally; no internet connection or account is required.

8.3 App Overview

When ReliaShiny opens, the left sidebar displays the available analysis modules, each corresponding to a chapter in this book:

ReliaShiny web app with a left sidebar listing modules: Life Data Analysis, Reliability Growth, Accelerated Life Testing, and Repairable Systems.

ReliaShiny landing page showing the sidebar module list.
Module Corresponding chapter Key capabilities
Life Data Analysis Chapter 3 2-parameter, 3-parameter Weibull, Weibayes; MRR and MLE; right-censored data
Reliability Growth Chapter 4 Duane and Crow-AMSAA model fitting; piecewise NHPP
Accelerated Life Testing Chapter 5 Arrhenius and Power Law models; relationship plots
Repairable Systems Chapter 6 Power Law Process (NHPP); MCF; fleet exposure

Each module follows the same three-step workflow:

  1. Input: enter or upload your data using form fields, tables, or file uploads.
  2. Analyze: click Run to fit the model.
  3. Output: view plots, parameter estimates, and summary statistics; download results.

8.4 Module Walkthroughs

Life Data Analysis Module

The LDA module fits Weibull models and generates probability and contour plots. The app includes a preloaded Time-to-Failure dataset so you can explore the workflow immediately without uploading data.

ReliaShiny Life Data Analysis module with a Weibull probability plot in the main panel and parameter estimates in the sidebar.

LDA module showing a fitted Weibull probability plot.

Workflow:

  1. Select the Life Data Analysis tab in the sidebar.
  2. Navigate to the Data sub-menu. The preloaded Time-to-Failure dataset is already loaded; explore additional options for data arrangement or upload your own CSV with columns time and event (1 = failure, 0 = suspension).
  3. Navigate to the Model sub-menu. Select the distribution (2-parameter Weibull by default) and estimation method (MRR or MLE).
  4. Click Fit Model. The Probability Plot appears in the main panel, with \(\hat{\beta}\), \(\hat{\eta}\), and the Anderson-Darling statistic.
  5. Switch to the Contour Plot tab for an interactive likelihood ratio contour showing the joint confidence region for \(\hat{\beta}\) and \(\hat{\eta}\).
  6. Click Download Plot to save the current chart as a PNG.

CSV format for upload:

time,event
30,1
49,1
82,1
90,1
96,1
100,0
45,0
10,0

A 0 in the event column marks a suspension (right-censored observation).

See the Life Data Analysis article for a full walkthrough.

Reliability Growth Module

The Reliability Growth module fits Crow-AMSAA and Duane reliability growth models. The app includes a preloaded Simple Data dataset for immediate exploration.

ReliaShiny Reliability Growth module displaying a Crow-AMSAA cumulative failures plot with fitted model curve.

Reliability Growth module showing a fitted Crow-AMSAA cumulative failures plot.

Workflow:

  1. Select Reliability Growth in the sidebar.
  2. Navigate to the Data sub-menu. The preloaded Simple Data dataset is loaded; designate the failures column as the failure indicator, or upload your own data.
  3. Navigate to the Model sub-menu.
  4. Click Fit. The Reliability Growth Plot (Crow-AMSAA cumulative failures) appears with the fitted curve and \(\hat{\beta}\).
  5. Switch to the Duane Plot tab to view the log-log cumulative MTBF plot for the same data.

See the Reliability Growth Analysis article for a full walkthrough.

Accelerated Life Testing Module

The ALT module fits Arrhenius and Power Law acceleration models using the WeibullR.ALT package (see Chapter 5). The app includes the preloaded Nelson Data dataset.

ReliaShiny Accelerated Life Testing module showing an ALT probability plot with stress-level curves and a life-stress relationship plot.

ALT module showing a probability plot and life-stress relationship.

Workflow:

  1. Select Accelerated Life Testing in the sidebar.
  2. Navigate to the Data sub-menu. The preloaded Nelson Data is already loaded. Map the columns: select the Stress Level, Time to Failure, and Event Indicator columns from the dropdowns.
  3. Navigate to the Model sub-menu. Choose the acceleration model (Arrhenius for temperature, Power Law for voltage/mechanical stress) and distribution (Weibull or Lognormal).
  4. Click Fit ALT Model. The ALT Probability Plot appears, with one curve per stress level.
  5. Switch to the Life-Stress Relationship tab to view how predicted life varies across the stress range, with percentile lines (P10, P63.2, P90).

See the Accelerated Life Testing article for a full walkthrough.

Repairable Systems Module

The Repairable Systems module fits the Power Law Process (Crow-AMSAA) and computes the MCF and exposure for fleet data. The app includes a preloaded Simple Data Set.

ReliaShiny Repairable Systems module displaying an MCF cumulative failures curve with confidence bounds for a fleet of systems.

Repairable Systems module showing a Mean Cumulative Function plot.

Workflow:

  1. Select Repairable Systems in the sidebar.
  2. Navigate to the Data sub-menu. The preloaded Simple Data Set is loaded; map the System ID, Event Time, and Event Indicator columns, or upload your own fleet data with columns id, time, and event.
  3. Navigate to the Model sub-menu.
  4. Click Analyze. Three plots are produced:
    • NHPP Plot: Crow-AMSAA Power Law fit with cumulative failures curve and \(\hat{\beta}\), \(\hat{\lambda}\).
    • Exposure Plot: fleet-level event rate as a function of operating time.
    • MCF Plot: non-parametric Mean Cumulative Function with confidence bounds.

Example CSV format:

id,time,event
1,310,1
1,850,1
1,1620,1
2,420,1
2,1050,1
2,3000,0

The last row for system 2 (event = 0) indicates that system 2 was observed until hour 3,000 without a third failure.

See the Repairable Systems Analysis article for a full walkthrough.

8.5 Data Upload Tips

  • CSV files: core column names (time, event, id, qty) are case-sensitive and must be lowercase. Stress column names (e.g., TempC, Voltage) may use any valid R name; they are selected in the app’s dropdown.
  • Missing values: rows with NA in the time column are automatically excluded.
  • Large datasets: the app handles datasets up to ~10,000 rows without performance issues.
  • Units: ReliaShiny is unit-agnostic; use hours, years, cycles, or any consistent unit. Label your outputs accordingly.

8.6 Downloading Results

Every module provides download buttons for:

  • Plot PNG: the current chart at screen resolution.
  • Results CSV: parameter estimates and summary statistics in tabular form.
  • Report HTML: a self-contained report combining the inputs, plot, and results (available in LDA and RT modules).

8.7 When to Use ReliaShiny vs Scripted R

Situation ReliaShiny Scripted R
Quick one-off analysis
Teaching / demonstration
Sharing with non-R users
Automating repeated analyses
Custom plots and formatting
Reproducible research / version control
Embedding results in a Quarto book
Large batch processing

ReliaShiny excels at rapid exploration, prototyping, and sharing results with stakeholders who do not use R. For production workflows, automated pipelines, and fully reproducible analyses, scripted R with the underlying packages (WeibullR, ReliaGrowR, WeibullR.ALT) gives more control.

8.8 Getting Help

Within the app, click the ? icon on any panel for a tooltip explaining the inputs and outputs for that module.

From R:

help(package = "ReliaShiny")

Additional resources:

8.9 Summary

ReliaShiny provides a point-and-click interface to the ReliaLearnR analysis ecosystem, covering life data analysis, reliability growth, accelerated life testing, and repairable systems, with no R coding required. Install it with install.packages("ReliaShiny") and launch it with ReliaShiny(). Use it for rapid exploration, stakeholder demonstrations, and sharing results; switch to scripted R for reproducibility, automation, and custom outputs.

Chang, Winston, Joe Cheng, JJ Allaire, et al. 2022. Shiny: Web Application Framework for r. https://doi.org/10.32614/CRAN.package.shiny.
Govan, Paul. 2023. ReliaShiny: A ’Shiny’ App for Reliability Analysis. https://doi.org/10.32614/CRAN.package.ReliaShiny.