Skip to content
EnaResearch
Variables and statistics

Plan first, results second

EnaResearch variables produce the per-participant values used in analysis from versioned definitions, and the statistics module only computes an analysis plan that was approved before any result, on a frozen dataset version and cut-off. Results are for research, not for clinical decisions.

Versioned variables

Every change to a formula creates a new immutable version; a dataset pins the version it uses.

Missing is never zero

A value that cannot be computed stays empty with a recorded reason; no zero or estimate is written.

Approval before results

Test, variables, significance level and hypothesis are approved; approval freezes the dataset version and cut-off.

Common tests

From descriptive statistics to t-tests, nonparametric tests, correlation and regression.

Small-group suppression

Groups smaller than 5 are hidden, with complementary suppression so a hidden value cannot be derived from totals.

Library versions stored

Calculations use SciPy and statsmodels; the input checksum and library versions are stored with each result.

What is a variable?

A variable is a single per-participant value used in analysis, for example the mean daily step count in the first seven days after surgery, or the length of a hospital stay. Its name is the column name in the exported file and does not change later. The formula lives in immutable versions: every change to the formula creates a new version, while changes to the label or description do not.

The preview computes each participant’s value from the data as of the current cut-off; values are not stored. Because it uses the revision history of clinical records and the version history of measurements, the same version with the same cut-off gives the same value.

  • Measurement summary in a window around a reference event (mean, median, minimum, maximum, sum, sample count)
  • Time to threshold (for example, first time reaching 100 steps per hour after surgery)
  • Length of stay
  • Event duration (for example, duration of surgery)
  • Time between two moments

Missing values keep their reason

When a value cannot be computed, it is left empty and the reason is recorded: no reference record, no end, no data, insufficient data or threshold not reached. No zero or estimated value is written, so “not measured” is never confused with “measured as zero.”

Variable datasets and exports

Selected variables become columns in a dataset with one row per participant. The dataset pins the current version of each variable and keeps using it even if the formula changes later. Files are pseudonymized and contain no identity fields.

An export includes variables.csv, missing.csv with the reasons for missing values, and codebook.csv as the data dictionary; Excel, SPSS (.sav) with variable labels and an R script that sets labels can be added. The same variable versions with the same cut-off produce the same content hash.

The analysis plan is approved before results

On the Analyses page, you first write a plan: the test, the variables, the significance level and the hypothesis. A plan that has not been approved is not computed. Approval freezes the variable dataset version and the data cut-off; an approved plan never changes, and changing it means opening a new analysis. Draft plans can be edited and deleted.

If the same dataset has more than one approved hypothesis test, a multiple-comparison warning with the Bonferroni-adjusted significance level is shown. The warning is not part of the result; interpretation stays with the research team.

  • Descriptive statistics (with 95% confidence intervals, by group)
  • Independent-samples t-test (Welch) and paired t-test
  • Mann–Whitney U and Wilcoxon
  • Chi-square and Fisher’s exact test (2×2)
  • Pearson and Spearman correlation
  • Linear and logistic regression

Reproducible calculation

Calculations use widely used open-source libraries, SciPy and statsmodels; most tests follow R’s default methods. Each result is stored with the input checksum and the library versions. The same plan, version and cut-off give the same result as long as participation records do not change.

Protecting small groups

Statistics and counts are not shown for a group smaller than 5. In cross-tables, cells smaller than 5 are hidden while the test still uses the full table. Complementary suppression keeps a hidden value from being recovered by subtracting from the total: when needed, the next smallest cell or group is hidden too. Regression requires at least 5 observations per coefficient.

Every result carries the note “for research, not for clinical decisions.”

Variables & statistics

Versioned variables, missing values with a reason, and statistics from analysis plans approved before results.

  1. 01

    Define variables

    Choose the reference event, window and summary; check values and missing reasons in the preview.

  2. 02

    Build the dataset

    Collect the variables in a variable dataset; their versions are pinned.

  3. 03

    Approve the plan

    Write and approve the test, variables, significance level and hypothesis; version and cut-off freeze.

  4. 04

    Compute

    The approved plan is run; the result is stored with the input checksum and library versions.

Related pages

Frequently asked questions

Is a value written as zero when a participant has no data?
No. The value stays empty and the reason (for example no data, insufficient data, threshold not reached) is written to missing.csv and shown in the preview. No zero or estimate is used.
Can I change the plan after seeing the result?
An approved plan does not change. Trying a different test or variable means opening a new analysis; the earlier plan and its result stay on record.
Which tests are available?
Descriptive statistics, Welch and paired t-tests, Mann–Whitney U, Wilcoxon, chi-square, Fisher’s exact test (2×2), Pearson and Spearman correlation, and linear and logistic regression.
Can the results be used for clinical decisions?
No. Variables and statistics are for research. Every result carries a note that says so.
Why are small groups hidden?
A count or mean from a very small group can make participants identifiable. Groups smaller than 5 are therefore hidden, and complementary suppression keeps them from being recalculated from totals.
Can I run the analysis in my own statistics software?
Yes. You can export the variable dataset as CSV, Excel, SPSS (.sav) or with an R script and work in your own environment.

Let's talk about your research data

We'll show what EnaResearch does today, share the roadmap openly and look at your studies and data sources together.

A separate deployment for every organization · Turkish and English