A biostatistics hub for clinicians and health researchers

Your data, organised, analysed, explained and written up

You bring the data and the clinical question. Safi walks you from a raw spreadsheet to a fitted model, tables, figures and a written draft.

Free Pilot plan. No statistics degree required.
Synthetic ART interruption cohort
Your dataYour studyYour planCheck the dataMethodResults
The main finding

Prior treatment interruption was associated with higher odds of treatment failure.

Adjusted odds ratio2.77
95% CI 1.94 to 3.95Odds ratio, log scale
This estimate describes an association in the synthetic cohort.
For anyone with a dataset

Work through the questions a statistician would ask.

A conversation about your study

Discuss your data, documents and research question.

Tables, figures, written results

Take the draft into a report or manuscript.

Raw rows stay out of AI prompts

The assistant works with column names, summaries and code.

Four jobs stand between your data and a paper. Safi does all four.

You bring the data. Safi helps with the time and the statistics.

Sift and organise

Hours spent checking codes, dates and duplicate records.

Inspect columns, review suggested fixes and keep the original data.

Analyse

Choosing an analysis without time to examine the assumptions.

Compare methods against the design, sampling and structure of your data.

Interpret

A results table you are unsure how to read.

Read the estimate in plain language alongside its uncertainty and limitations.

Write up

Methods and results drafted from a blank page.

Start with methods, results, tables and figures you can review and edit.

Who it is for

With or without a statistician on your team

Clinicians and researchers

Work through the analysis

Follow the decisions behind your first draft, one step at a time.

A shared statistician

Make their time count

Bring your statistician a documented analysis and the questions that need their judgment.

A biostatistics team

Get to a first answer faster

Check the calculations and build on the underlying R project.

How it works

From a dataset, to a valid question, to publication

Six stages take you from the first upload to a report you can share.

  1. Your data

    Upload your spreadsheet and, if available, its data dictionary or protocol. Review the columns Safi has read before using them.

    Your columns
    prior_interruption
    Exposure · yes or no
    treatment_failure
    Outcome · binary
    age_years
    Age in years
  2. Your study

    Describe the design, sampling and timing. These answers determine which methods fit the study.

    Study design
    Study
    Synthetic ART cohort
    Comparison
    Prior interruption vs no interruption
    Outcome
    Treatment failure
  3. Your plan

    Discuss what the data can answer. Choose an outcome, a comparison and adjustment variables that make sense for your question.

    Research question
    Among adults on ART, is prior treatment interruption associated with treatment failure?
    Table 1 Participant characteristics
    Model Adjusted odds ratios
  4. Check the data

    Review the proposed fixes and decide which to apply. Safi explains how a shortcut can bias your results. More on data checks.

    Missing values
    Filling in missing values with the mean

    Replacing missing measurements with a single mean understates uncertainty.

    Review the missingness pattern before selecting an analysis.
  5. Method and confirm

    Review the proposed method, its assumptions and its limitations. Confirm the analysis before running it.

    Logistic regression
    Why it fits
    A binary outcome and an odds-ratio question.
    What you get
    An adjusted odds ratio with a 95% confidence interval.
    Interpretation
    A conditional association between exposure and outcome.
  6. Results

    Start with the main finding, then explore the model table, figures and checks. Read the example report.

    Results from the synthetic cohort
    The main finding

    Prior treatment interruption was associated with higher odds of treatment failure.

    Adjusted odds ratio2.77
    95% CI 1.94 to 3.95Odds ratio, log scale
    This estimate describes an association in the synthetic cohort.

Data management

The part where most projects stall, handled

Review the data before fitting a model. Check coding, missing values, duplicate records and the unit of analysis. Each cleaning decision has a record.

  • Review source columns. Check codes, ranges, dates and missing values.
  • Decide how to clean. Review a proposed change before applying it.
  • Keep an audit trail. Inspect the R code behind the cleaning steps.
Data review · synthetic C7 cohort
Records after cleaning
1,199
Rows excluded during cleaning
0
Observations in the fitted model
1,008

The descriptive tables and the fitted model can cover different numbers of observations. Safi reports both counts.

The report

Written up for you, checked by default

Read the findings in HTML, PDF or Word, with the details a reviewer needs.

  • Written methods and results
  • Formatted tables and figures
  • Model assumptions and diagnostics
  • Sensitivity results when available
  • Compact R code for replication
outputs/report.htmlHTML · PDF · Word
Analysis report · synthetic C7 study

Prior treatment interruption and treatment failure among adults on ART

Statistical analysis

We fitted a logistic regression model adjusting for age, sex, WHO stage, baseline CD4, tuberculosis, ART regimen and enrollment year. The fitted model included 1,008 observations.

Results

Prior treatment interruption was associated with higher odds of treatment failure. The adjusted odds ratio was 2.77 (95% profile-likelihood CI 1.94 to 3.95).

Selected adjusted odds ratios for treatment failure
VariableaOR95% CI
Prior interruption (yes vs no)2.771.94 to 3.95
Enrollment year, per year1.020.88 to 1.19
Sex (female vs male)0.670.48 to 0.94
WHO stage, per stage1.090.90 to 1.32
Adjusted odds ratios, log scale
Prior interruption (yes vs no)
Enrollment year, per year
Sex (female vs male)
WHO stage, per stage

Model checks

Seven checks ran. Two found no concern, and five were informational.

Sensitivity analyses

This run did not record a sensitivity analysis for the main result.

Features

Built for anyone with a dataset

No statistics degree required

Plain-language questions guide each step. Experienced analysts can inspect the underlying R.

A conversation about your goals

Discuss the question, data and audience before choosing the analysis.

Methods chosen by your design

Study design, outcome type and sampling guide the methods offered.

Refusals with a way forward

When an analysis is unsuitable, read the reason and explore the available alternatives.

History that keeps results honest

See decisions in context and track changes that call for a new run.

Health-data controls

Review identifier warnings, sharing permissions and small-count suppression.

Your R project

Leave with code a reviewer can rerun

Download the numbered R scripts, package lockfile, tables, figures and checksum file. The report also includes the compact R code for replicating the results.

  1. Unzip the R project and open its setup instructions.
  2. Install the listed tools and supply the original data if needed.
  3. Source START_HERE.R in RStudio to rerun the analysis.
R console · extracted project
# Restore packages and run the analysis
source("START_HERE.R")

# Check the files against the manifest
source("verify.R")

Spend your time on the clinical question.