Help
Your first analysis, from dataset to download.
Follow this walkthrough to compare the mean before measurement between the Control and Treatment groups using the t-test tool. The example data are synthetic and included with MedStator.
For parameter definitions and examples for every module, browse Docs or open the t-test reference.
1. Find the analysis tool
On the Analyses page, browse Statistical Analyses and select t-test, or use the Open t-test link above.
You can also describe your question in the recommendation box on Home and select Find tools. Clicking the example text fills the box; you can edit it before submitting. Recommendations help you navigate the catalog. Check that the selected method fits your study design.
2. Prepare a table
For two independent groups, use one row per observation, a numeric measurement column and a grouping column with exactly two non-missing values. In this example, before is the measurement and group contains Control or Treatment.
This excerpt shows the layout. Download the full example CSV above to follow the walkthrough with all 80 observations.
group,before,after,age,sex,event
Control,20.0,19.6,30,M,1
Control,21.3,20.5,31,F,0
Treatment,22.0,20.4,30,M,0
Treatment,23.3,21.3,31,F,1
Export your own spreadsheet as UTF-8 CSV or TSV with a single header row and unique column names. Upload limits are 2 MiB, 10,000 data rows, 60 columns and 200,000 cells. Empty cells, NA, N/A, NaN and NULL are treated as missing.
3. Load the data
Under Data source, choose Upload new data, select the downloaded CSV under CSV or TSV file and select Upload dataset. Alternatively, select Use example data to load the same synthetic dataset directly.
If you have already uploaded the data, choose Use uploaded data, select a file under Uploaded datasets in this session and select Use dataset. Only the selected source's controls are shown. The list shows filenames, row and column counts, and upload times. Select Refresh list to pick up changes made in another tab. You can use the same dataset in another analysis tool while it remains available in this session.
Wait for Dataset ready. Check the filename, row count and preview of the first five rows. The before column should be marked numeric. Parameter controls appear after the upload has been validated. Uploading and running analyses require JavaScript to be enabled in your browser.
4. Set the analysis parameters
For this independent-groups example, use the following settings. Enter the first group explicitly so the direction of the difference is clear.
| Field | Setting | Purpose |
|---|---|---|
| Study design | Two independent groups | Compare observations from two separate groups. |
| Measurement | before |
The numeric values to compare. |
| Grouping variable | group |
Separates Control and Treatment observations. |
| First group (optional exact value) | Control |
Reports the difference as Control minus Treatment. Match spelling and case. |
| Null mean or mean difference | 0 |
Tests against a zero difference between group means. |
| Equal var | Unchecked | Uses Welch's independent t-test. Checking it selects Student's equal-variance test. |
| Alternative | two-sided |
Tests for a difference in either direction. |
| Confidence level | 0.95 |
Requests a 95% confidence interval. Enter a proportion, not 95. |
Using paired measurements or one sample
For Paired measurements, put both measurements for each participant on the same row. Select before as Measurement and after as Second measurement (same row). The estimate is before minus after, and incomplete pairs are excluded together.
For One sample, select a numeric Measurement and enter the reference mean under Null mean or mean difference. Grouping controls are hidden for paired and one-sample designs.
5. Run the analysis
Select Run analysis. The status changes from submission to running, then confirms that results and downloads are ready. Controls are temporarily disabled while a request is in progress.
If a parameter is invalid, read the message above the form, correct the indicated field and run again. You can change parameters and rerun with the same uploaded dataset. Reset parameters restores the loaded form values and hides the displayed results.
6. Review and save the results
Confirm that the method is Welch independent t-test and the group order is Control minus Treatment. With the full example and the settings above, the result uses 80 observations and the estimated mean difference is approximately −2.
The test table reports the estimate, null value, t statistic, degrees of freedom (df), p value and confidence interval. The samples table reports each group's N, mean and standard deviation. The figure shows the measurement distributions. Check any warnings about excluded rows.
Use the download buttons to save result tables such as test.csv and samples.csv, and the figure.png chart. Save the files before removing the dataset or letting it expire.
7. Remove the uploaded data
Select Remove dataset when you have saved the files you need. This deletes the current dataset and its analysis results from the workspace. Files already downloaded to your computer remain available there.
Uploaded data and results are tied to your browser session. Removing a dataset also removes its results from other tabs using that session. Refreshing or changing tools keeps the session active. After 15 minutes without contact, the session ends; a background cleaner checks every 15 seconds and deletes its data. Closing the browser may not notify the server, so automatic deletion uses this timeout. Save downloads before removing data or leaving the session inactive. Another browser or a private window has a separate session. Recommendation requests send your task description to the recommendation service.
MedStator uses one first-party session cookie to identify your anonymous workspace. It contains only a random identifier, is a browser-session cookie and is not used for advertising or tracking. CSRF protection is stored in the server session.
Common questions
This session already has five datasets
Select clear all after the limit message to delete every uploaded dataset and its analysis results in this browser session, including uploads from pages you have left. You can then upload again. Other sessions are unaffected, and files already downloaded to your computer remain available there.
My spreadsheet will not upload, or a measurement is missing from the list
Export as UTF-8 .csv or .tsv; Excel .xlsx files are not accepted directly. Check that each row has the same number of cells as the header and that the upload fits the limits above. A measurement column must contain numeric values or recognized missing-value markers; remove text units such as “mmHg” from the cells.
The t-test reports a group or sample error
Independent samples need exactly two non-missing group labels and at least two complete measurements per group. The First group value must match a label exactly. Paired samples need two different numeric columns and at least two complete pairs. Constant measurements or paired differences can make the test undefined.
I cannot find results after refreshing or changing browsers
After refreshing or returning to a tool, choose Use uploaded data, select an upload under Uploaded datasets in this session and choose Use dataset to restore its preview and parameter form. Review the settings and run the analysis again; previous run results are not restored by this selector. Expired or removed data no longer appear in the list. Another browser or private window has a separate session.
Recommendations are unavailable
You can still browse Statistical Analyses and open the t-test tool directly. Recommendations are optional; uploading data and running an analysis use the selected tool's workspace.