Opens in a new tab
Home/Example Projects/R Shiny Dashboard for a Multisite Stroke Rehabilitation Trial

ILLUSTRATIVE EXAMPLE

R Shiny Dashboard for a
Multisite Stroke Rehabilitation Trial

A blinded R Shiny dashboard that refreshes from a weekly export and shows recruitment projection, data completeness and assessor consistency by site for a 12-site stroke rehabilitation trial.

Psychology & Behavioral SciencesNeuropsychology & NeuroscienceR (Shiny)Missing data analysis

This example does not describe a real client or project. Every engagement is confidential, during the project and after it ends.

1

RESEARCH QUESTION

What the Monitoring Dashboard Has to Show

This R Shiny dashboard example follows the coordinating team of a 12-site randomized trial of a cognitive rehabilitation program after stroke. The team sends monthly PDF tables to its steering committee and wants a dashboard that refreshes from the weekly data export, so that slow recruitment, missing assessments and drifting assessors are seen while they can still be corrected.

The study team must stay blinded. The dashboard therefore holds no allocation data and shows no results by arm. Any unblinded report for the data monitoring committee is prepared separately, by a statistician outside the blinded study team, and is not produced in this app.

2

STUDY DESIGN AND DATA

A Weekly Export From 12 Sites

An ongoing multisite randomized trial with 12 sites and a target of about 360 participants. The weekly export holds study codes, site, enrollment date, visit dates, assessor identifier and the scores of a primary cognitive outcome at each visit. The allocation variable is never part of the export that feeds the app, and names and contact details are not included.

  • Design: ongoing multisite randomized trial, blinded monitoring of aggregate data
  • Measures: recruitment against target, visit timing, completeness and site consistency
  • Software requested: R (Shiny), hosted by OnlineSPSS or by the research team, depending on the agreement
3

METHOD AND ASSUMPTIONS

Why Each Panel Carries Its Uncertainty

Recruitment is projected from site-level accrual with a Poisson model that allows for sites opening at different dates and for extra variation between sites. The projection is shown with its prediction interval and not as a single completion date, because a forecast built on a few months of accrual is uncertain. Data checks are scripted and run on every refresh: visits outside their windows, impossible dates, duplicate records and scores outside the instrument's range.

Completeness of the primary outcome is shown by site and visit, with the pattern of missingness, because a site that loses the final assessment threatens the analysis more than a slow site does. Assessor consistency is screened on pooled baseline scores, collected before treatment can matter. A random-intercept model for site and for assessor within site shows constant offsets, and each assessor's baseline scores are tracked against calendar time, so drift, and not only a fixed difference, becomes visible. An unusual site or assessor effect prompts a look at how assessments are done and is not a finding in itself. Automated tests of the app's calculations run before each release, so a code change that alters a tested figure is caught before the team sees it.

4

OUTPUT AND INTERPRETATION

How the Dashboard Is Read

The app has a recruitment panel with cumulative enrollment against target and the projection with its interval, a visit window panel, a completeness panel by site and visit, and an assessor consistency panel. Each panel states the date of the export behind it and offers the underlying table for download.

Two role-based views exist, one for the coordinating team with site-level detail and one for the steering committee with aggregate figures, and neither shows outcomes by arm. The flags are prompts to follow up with sites, not stopping rules. The monitoring plan, not the app, decides which thresholds trigger action.

5

REPORTING

What the Researcher Received

A monitoring plan section that describes each panel, its data source, its refresh schedule and its flag thresholds, informed by the risk-proportionate approach to trial quality in ICH E6(R3), with open and closed reporting kept separate as data monitoring committee charters usually describe. The trial design, the monitoring decisions and the conclusions remain with the research team.

Delivered package

Shiny app with the four monitoring panels, deployed where the agreement specifies
Data check scripts that run on every refresh
Monitoring plan section covering panels, data sources and thresholds
Automated tests for the app's calculations
Source code, package versions and a short guide for the coordinating team

NEXT STEP

Have a Similar
Research Need?

Share your project and receive a personalized assessment from a statistically trained Research Coordinator, with a fixed fee, usually the same day.

No Commitment Required

Strictly Confidential

Fixed Project Fee

In-House PhD-Level Statisticians

Same-Day Response

Serving Researchers Since 2014