t-test
Compare means between two groups or paired measurements using a t-test when its assumptions are appropriate.
Data requirements
Use a numeric measurement. Independent samples need exactly two non-missing groups; paired samples need two measurements for the same participant on the same row.
Upload UTF-8 CSV or TSV with unique column names in the first row. Blank, NA, N/A, NaN and NULL entries are treated as missing. Files support up to 2 MiB, 10,000 rows, 60 columns and 200,000 cells; module-specific limits also apply.
Parameters
Names match the analysis form. Starting values describe a newly loaded form; column selections depend on your uploaded data. Matching example column names may be preselected. Review every selection before running.
“Optional / conditional” fields may be required by a particular mode or method. The explanation states when each field takes effect. Hold Ctrl / Command to select multiple columns.
Confidence level
NumberEnter a proportion strictly between 0 and 1, such as 0.95 for a 95% confidence interval.
Study design
ChoiceOne sample compares a mean with mu; Two independent groups compares separate groups; Paired measurements compares two columns from the same rows.
- One sample
-
one-sample - Two independent groups
-
independent - Paired measurements
-
paired
Measurement
ColumnNumeric measurement. For paired data this is the first measurement in the first-minus-second difference.
Grouping variable
ColumnRequired for independent samples only. Choose a column different from Measurement with exactly two non-missing levels. Hidden and unused for other designs.
Second measurement (same row)
ColumnRequired for paired measurements only. Choose a different numeric column; both measurements for each participant must be on the same row.
First group (optional exact value)
TextOptional exact first-group value for independent samples. Blank uses alphabetical order. The estimate and alternative are oriented as first group minus the other group.
Null mean or mean difference
NumberNull mean for one sample, or null first-minus-second mean difference for independent and paired designs. Usually 0 for a no-difference comparison.
Equal var
CheckboxIndependent samples only: unchecked selects Welch's test; checked selects Student's pooled equal-variance test. Hidden and unused for other designs.
Alternative
Choicetwo-sided tests either direction; less and greater are one-sided alternatives. Check the variable or group order before choosing a direction. The direction refers to the mean or first-minus-second difference relative to mu.
- two-sided
-
two-sided - less
-
less - greater
-
greater
Example settings
Load the bundled example in the analysis workspace, or upload the example CSV linked above, then use these settings. These are illustrative choices for the synthetic data.
| Parameter | Setting |
|---|---|
| Confidence level | 0.95 |
| Study design | independent |
| Measurement | before |
| Grouping variable | group |
| Second measurement (same row) | Blank |
| First group (optional exact value) | Control |
| Null mean or mean difference | 0 |
| Equal var | Unchecked |
| Alternative | two-sided |
Results
The test table reports the estimate, null value, t statistic, degrees of freedom, p value and confidence interval on the original measurement scale. The samples table reports N, mean and sample SD. Additional downloadable analysis-summary and diagnostics tables describe the analysis scope and method checks. Selected-variable missingness is reported where applicable. Diagnostics do not establish external validity or verify untested assumptions.
Review the reported method, observation count and notes alongside the estimates. Result tables can be downloaded as CSV and the figure as PNG.
Notes & limitations
- Incomplete pairs are removed together. Independent comparisons exclude rows missing the measurement or group. Each sample needs at least two observations and suitable variation.
- Study design initially depends on uploaded column types. Choose the design explicitly for your study.