User guide · Chapter 01

Getting started

35 min read · 13 sections

This chapter takes you from the first launch of Variance to your first exported figure: the Start window and its options, creating and filling a first table, the graph created automatically, a first analysis, saving the project, templates, automatic backups and undo. It ends with a complete walkthrough, on sample data, from the table to the PDF file.

Conventions: menus, buttons and windows of Variance are written in bold, exactly as on screen. File › Save As… means the Save As… command of the File menu. Variance shows numbers with a decimal point (5.251), as this guide does.

Starting Variance#

At startup, Variance opens its main window with an empty, untitled project ("Untitled") and shows the Start dialog on top of it. A project is a single file that holds all your sheets: data tables, notes sheets, analysis results, graphs and page layouts. Variance works on one project at a time.

The title bar shows the file name of the project followed by "- Variance", for example "Assay 12.var - Variance". An asterisk after the name ("Untitled *") marks unsaved changes.

Two situations change this startup:

  • if Variance was closed abruptly while a project had unsaved changes, the Recover Unsaved Work dialog replaces the Start window (see "Automatic backups and recovery");
  • if Variance is started with a file (double-click on a .var file after Tools › Associate .var Files, or a file name given on the command line), that file opens directly, without the Start window.

If you close the Start window without creating anything, the central area shows "Variance - Biostatistics and scientific graphing" and three buttons: New table… (opens the Start window again), Open a project… and Open the demonstration project.

The Start window#

The Start window creates a data table (and its graph) or opens a file. It opens at startup, after File › New Project (Ctrl+N), and whenever you ask for a new table: File › New Table…, Sheet › New Table…, the Add a table… entry of the navigator or the new-sheet button of the Sheets group of the ribbon. Sheet › New Table, No Graph… opens the same window with the Also draw its graph box unchecked.

At the top#

On the left, the title New table; on the right, Open… (the file dialog, see "Opening a project"), Recent (dropdown listing recent files and user templates), Demo project (replaces the current project by the demonstration project, after a confirmation if there are unsaved changes), Guide (this guide, at its home page), Tutorial (the first chapter of the statistics tutorial) and a compact options icon (Theme and language) to switch between light, dark or system theme and between English, French or system language right from startup.

The cards of the table types#

Eight cards, in two rows, present the table types by what they are for: One factor (compare groups), Two factors (groups across two factors), Nested (units measured several times), XY (curves and regression), Survival (time until an event), Contingency (counts in categories), Proportions (shares of a total) and Multivariable (many variables per subject). A click selects a card; the sentence below it describes the chosen type, and the window shows its settings on the left and a preview on the right.

Settings and preview#

The Settings column depends on the table type; it is described in the following table. For every type but Proportions (which has a single data set), the Series field sets the number of data sets, from 1 to 200; for Multivariable it reads Variables.

TypeSettingsDefault data sets
XYX values: Numbers, Numbers ± error (horizontal bars), Dates, Elapsed times; Y values (see below)3
One factorValues: Independent groups, values in columns, Matched values, one subject per row, or Center and error, computed elsewhere3
Two factorsY values (see below)3
Contingency"Nothing to set: the table starts empty."2
SurvivalTimes: Elapsed times or Start and end dates; Unit: days, weeks, months or years2
Proportions"Nothing to set: the table starts empty."1 (fixed)
Multivariable"Nothing to set: the table starts empty."5
NestedUnits per group (1 to 100, 3 by default)2

The Y values list of XY and Two factors tables offers three entries:

  • One value per point: one subcolumn per data set;
  • Replicates side by side: n subcolumns of replicates, set by Replicates per point (2 to 100, 2 by default);
  • Center and error, computed elsewhere: you enter summaries computed elsewhere; the Entered as list offers Mean, SD, N (default), Mean, SEM, N, Mean, %CV, N, Mean, SD, Mean, SEM, Mean, %CV, Mean, +error, -error and Mean, upper limit, lower limit.

For a One factor table, the first entry creates a single subcolumn per group (each value of a group on its own row); the second prepares paired data: the graph created is a Before-after graph and the first ten rows are labeled "Subject 1" to "Subject 10". For a Survival table, the chosen unit gives the title of the X column ("Days elapsed", "Weeks elapsed"…); each row is a subject, with its time in X and 1 (event) or 0 (censored) in the column of its group. For a Nested table, each subcolumn is an experimental unit (an animal, a culture) and each row of that subcolumn a repeated measurement of it.

The Preview column shows the table as it will be created (X column, data sets, subcolumns, with example names) and a thumbnail of the graph that comes with it. Both follow your settings.

Starting with an example#

Below the settings, Start with offers an empty table (built according to the settings) or an example: a table already filled with one of the sample data sets of the chosen type, chosen in the list that appears. The settings are then grayed out: the structure is that of the sample.

The samples are fixed: they always give the same values (with four significant digits), so that you can redo the examples of this guide and of the statistics tutorial and compare your results.

TypeSamples offered
XYDose-response (log dose, replicates): 11 doses (log[Agonist], M, from −9 to −4), data sets "Control" and "With antagonist", triplicates; Simple linear regression: "Sample A" and "Sample B" against time (min); Exponential decay (time course): "Concentration" against time (h), duplicates; Enzyme velocity vs. substrate: "Velocity" against [Substrate], µM, duplicates
One factorThree groups (one-way ANOVA): "Control", "Treated A", "Treated B", 8 values each; Paired data (before/after): "Before" and "After", 10 subjects; Two groups (t test): "Wild type" (12 values) and "Knock-out" (10 values)
Two factorsTwo-way ANOVA (3 rows × 2 data sets, triplicates): rows "Placebo", "Low dose", "High dose", data sets "Male" and "Female"
ContingencyTreatment and outcome (2×2): "Treated" and "Placebo" × "Disease" and "No disease"
SurvivalSurvival of two groups: "Standard" and "New treatment", 12 subjects per group, time in days
ProportionsDistribution of categories: four categories of peas ("Round yellow" 315, "Round green" 108, "Wrinkled yellow" 101, "Wrinkled green" 32)
MultivariableClinical study (continuous, categorical and outcome variables): 40 individuals, variables "Age", "Weight", "Height", "Sex", "Response", "Time", "Event"
NestedNested design (2 treatments × 3 animals × 4 measurements): "Control" and "Treated", 3 subcolumns (animals), 4 measurements each

Recent files, examples and templates#

At the top next to Open…, the Recent menu lists the last ten files opened or saved, followed by up to twelve examples and templates from the examples folder in alphabetical order. A click opens the file; hovering shows its full path. The examples folder is the one set in Preferences › Folders › Templates and examples; when that is empty, the Examples subfolder of the Variance configuration folder (%APPDATA%\Variance\Examples on Windows).

Creating: the Create button#

At the bottom right are the Also draw its graph box (checked by default) and the Create button. Clicking Create:

  1. creates the table in the Tables section of the navigator, named "Table 1", "Table 2"… (the number follows the number of tables; two sheets of the same section never share a name);
  2. gives it at least 30 rows (more rows appear as soon as you type further down);
  3. if the box is checked, creates a graph with the same name in the Graphs section, of the default type for the table (see "The automatic graph");
  4. if Preferences › Notes Sheet › Create a notes sheet with each new table is checked, also creates notes "Notes – Table 1" attached to the table;
  5. shows the table, ready for typing, and closes the Start window.

For X values entered as dates, the title of the X column becomes "Days (from the first date)"; for elapsed times, "Hours".

Creating and filling a first table#

Goal: type your own values into an empty table. The example below creates a One factor table with three groups; typing works the same way in every type of table.

  1. Open the Start window (at startup, or File › New Table…).
  2. Click the One factor card.
  3. Keep an empty table and, under Values, Independent groups, values in columns. Set Series to 3.
  4. Keep Also draw its graph checked and click Create.
  5. The table "Table 1" appears. Above the grid, a line recalls its type ("One factor table (1 replicate(s))") and offers three buttons: Format Table…, Analyze… and Graph.
  6. Give each group a title: double-click the top of the header of column A, where the letter "A" and the default title "Series A" are shown, type the title, then Enter. Do the same for B and C.
  7. Click the first cell of column A and type the first value: typing replaces the content of the cell. Enter validates and moves one row down; Tab validates and moves to the column on the right; Shift+Enter and Shift+Tab go the other way; the arrow keys also validate a value you have just typed.
  8. Go on group by group. Groups may have different sizes: simply leave the bottom cells of the shorter columns empty.

What to know from the first entry:

  • both the point and the comma are accepted as decimal separator ("2.5" and "2,5" give the same value); the typographic minus sign (−) is recognized;
  • text typed in a column of numbers is kept but shown in red, and the status bar says "“…” is not a number: it is kept as text and ignored by analyses": analyses and graphs ignore it;
  • a value followed by an asterisk (12*) is entered as an excluded value: it stays visible (in blue, with its asterisk) but is used neither by analyses nor by graphs; Ctrl+Shift+D excludes or includes again the selected values;
  • F2 or a double-click edits the content of a cell without erasing it; Esc cancels the edit in progress;
  • Del or Backspace clear the selected cells;
  • the leftmost column, "Label", holds the row labels (names of subjects, of categories…); it stays narrow while it is empty;
  • Ctrl+V pastes a block copied from a spreadsheet at the active cell; if the block goes beyond the right edge, Variance adds the data sets needed.

All the details (selection, copy and paste, Paste Special, series, inserting rows and columns, entry formats, changing the type) are in the "Data tables" chapter. To read a text file or a workbook instead of typing, use File › Import Data… (chapter "Import, export, print").

The automatic graph#

If the Also draw its graph box was checked, a graph with the name of the table appears in the Graphs section of the navigator. Click it to show it. It is linked to the table: any value typed, changed, excluded or cleared updates it at once.

The type of graph created depends on the type of table:

Table typeGraph created
XYPoints joined by a line
One factorDot plot (each value, with the mean and the standard deviation); Before-after for paired data
NestedSuperPlot (technical replicates colored by biological replicate behind biological-replicate means and the grand mean ± error)
Two factors and ContingencySide-by-side bars
SurvivalSurvival curve (staircase)
ProportionsPie chart
MultivariableBubble plot

A type chosen with the Set as default for … tables box of the New Graph and Graph Type dialogs becomes the type created by default for that type of table.

To change the graph: Format › Graph Type… changes its type (thumbnails by family and a preview); a double-click on an element (axis, data set, legend) opens the matching formatting dialog; the Format Graph… button above the graph opens the full formatting dialog; the title and the axis titles are edited in place by a double-click. All of this is described in the "Graphs" chapter.

To make another graph of the same data: Sheet › New Graph…, the Graph button above the table, or New Graph… in the Graphs section of the navigator. If you had unchecked the box, this is also how to create the first graph.

A first analysis with Choose an Analysis#

Goal: analyze the data of a table, for example compare two groups. The general entry point is the Choose an Analysis dialog, which presents every analysis and enables only those suited to the type of the table.

Opening the Choose an Analysis dialog#

Show the table (or a graph of this table, or a results sheet whose output table you want to analyze), then use any of:

  • the Analyze button of the Analyses group of the ribbon;
  • the Analyze… button above the table;
  • Analysis › Choose an Analysis…;
  • Sheet › New Analysis…, or the New Analysis… entry of the Results section of the navigator;
  • Analyze… in the context menu of a table in the navigator.

The two halves of the dialog#

On the left, Analysis: a Search… box filters the analyses by name; below, the analyses are grouped by family (Prepare Data, Describe and Explore, Curves and Regression, Compare Groups, Survival, Clusters, Simulate), preceded by Recent (the last eight analyses run, remembered from one session to the next). A grayed analysis does not apply to this type of table; the tooltip of each analysis describes it. Variance preselects the last analysis used that suits the table.

On the right, Data sets to analyze: the Table: list chooses the data (any table of the project, or an output table of an analysis, shown as "results name › output table name"); below, one box per data set ("A: Wild type"…); Select All and Deselect All check or uncheck them all.

Click OK (or double-click the analysis): the parameters dialog of the analysis opens.

The parameters dialog#

Its title is Parameters: followed by the name of the analysis. A sentence recalls what the analysis does; tabs group the options (their names depend on the analysis: Experimental Design, Options…); the Data sets tab still lets you check or uncheck data sets. The Options tab always holds Significant digits and P value format, whose initial values come from Preferences › Analysis (4 significant digits and the standard P value format, by default).

At the bottom:

  • OK runs the analysis;
  • Cancel closes without creating anything;
  • Defaults restores the default parameters of the analysis;
  • Save as the default for new analyses: the choices made (except the data sets) become the initial values of this analysis the next times.

The options of each analysis are explained in detail in the statistics tutorial.

The results sheet#

The analysis creates a sheet in the Results section, named after the analysis and the table (for example "Table 1 – Two-Group Comparisons"), and shows it. At the top are the full name of the analysis and the Settings… (Ctrl+Shift+A), Copy and Export… buttons; below, "Input table:" followed by the name of the table. The results are spread over tabs (Results, Residuals, Descriptive statistics…); the tabs marked ⊞ are output tables, which can be graphed (Plot These Results) or analyzed in turn (Analyze These Results). Ctrl+1, Ctrl+2 and Ctrl+3 show the first three tabs; Ctrl+Tab and Ctrl+Shift+Tab go to the next or previous tab.

Results are linked to the data: change a value in the table and the analysis is recalculated at once, as are its graphs. To lock results, use Sheet › Lock Sheet or the Lock the results (no recalculation) box of the Inspector. To change the options afterwards: Ctrl+Shift+A or Format › Analysis Settings…; to change the data analyzed: Format › Analyzed Data… (see the "Layouts, results and notes sheets" chapter).

Some analyses add to the graphs: the regressions (nonlinear, simple linear, simple logistic, Deming, spline/LOWESS, interpolation of a standard curve) add their curve to the graph of the data, or create one if there is none; others create a graph of their output table (for example Transform, Multiple t Tests, Bland-Altman, ROC Curve). An analysis and the graph it creates are undone in a single step.

Saving the project#

A Variance project is saved in a single file with the .var extension, which holds all its sheets: data, analyses with their parameters, graphs, layouts, notes sheets, sticky notes, attached files and scripts. Analysis results are recalculated when the project is opened.

Save and Save As#

  1. File › Save (Ctrl+S), or the save button of the Project group of the ribbon. For a project never saved, Variance opens the save dialog, as Save As… does.
  2. File › Save As… (Ctrl+Shift+S) saves under another name; the name offered is "Project.var". A name given without an extension gets .var.
  3. Once saved, the asterisk leaves the title bar and the status bar shows "Saved" (or "Saved" followed by the path for Save As…).

The folder offered by the file dialog is that of Preferences › Folders › Projects when it is set and exists; otherwise the one chosen by the system (usually the last one used).

Saving is safe: Variance first writes a temporary file, checks that it reads back, and only then replaces the previous file. A failure during saving therefore leaves the previous version intact.

Other ways of saving#

The File › Save Other submenu gathers the special ways of saving:

  • Copy of the Project…: writes a copy of the project (name offered "Copy.var"); the open project keeps its name and file;
  • As a Template…: saves a template (.vart, see below);
  • As an Example…: saves a template in the examples folder; it then appears in the Start window under Recent;
  • Linked Sheets as a Project…: writes the sheets linked to the active sheet to a new .var project, data included;
  • Linked Sheets as a Method…: saves them as a template (their table, analyses, graphs, layouts and attached notes), with the data emptied;
  • Rename File…: saves the project under a new name and deletes the old file (for a project never saved, same as Save As…).

The save-as button of the ribbon (right of the save button) opens a menu with Save As…, Save a Copy… and Save as Template….

Opening a project#

Coming from GraphPad Prism? Find the equivalent commands and check what transfers from a .prism or .pzfx file.

Read the full transition guide

  1. File › Open… (Ctrl+O), the open button of the ribbon (its menu also offers Open… and the last eight files), Open… in the Start window, or simply drag and drop a file onto the Variance window.
  2. Choose the file. The dialog opens on "All supported projects (.var, .prism, .pzfx, .xml)" (which includes .prismt and .vart) and also offers per-format filters and "All files".
  3. If the open project has unsaved changes, Variance asks "Discard the unsaved changes of the current project?": Save, Discard or Cancel.
  4. The project opens in place of the current one; all its analyses are recalculated and its first data table is shown. The status bar says "Opened" followed by the path.

Depending on the file:

  • a .var file opens with its name: Save saves it in the same place;
  • a .vart template creates a new untitled project, with the structure of the template and empty tables; the template itself is left unchanged;
  • a .pzfx or .xml exchange file is read (tables, subcolumn titles, dates/elapsed times, categorical levels, info sheets, constants and notes) and gives an untitled project, to be saved as .var. For a Prism .pzfx/.xml file, Variance shows an import summary with a direct link to the transition guide and optional Create Graphs…;
  • a .prism or .prismt file opens its supported data tables, info sheets (notes and constants), and best-effort linked graph sheets (type, titles, orientation, legend, axis titles/scales/ranges) in an untitled project. Variance shows an import summary reporting any skipped tables or graphs, with optional Create Graphs… for tables without an imported graph. Analyses, results, and layouts stay in the source file. Save the imported project as .var.

If the project holds scripts that run automatically when it is opened or closed, Variance first asks for your consent (Project scripts dialog: "This project contains scripts that run automatically when it is opened or closed. A script can modify the project and write files. Allow these scripts to run?"). Yes runs them, Cancel opens the project without running them.

To add only specific sheets from another file to the open project instead of replacing it, use File › Add Sheets from a File… or File › Import Data…. Both accept .var, .vart, .pzfx, .xml, .prism and .prismt files and open the Import Sheets chooser when the file holds multiple sheets. Names and links between supported sheets are kept, with names adjusted when needed.

Recent files#

Variance remembers the last ten files opened or saved (in its preferences):

  • File › Recent Files lists all of them ("(none)" when the list is empty);
  • the menu of the open button of the ribbon shows the first eight;
  • the Start window shows the first six.

Closing and quitting#

  • File › Close (Ctrl+W or Ctrl+F4) closes the project and leaves the window empty; File › Close All does the same (a single project is open at a time).
  • File › Quit (Ctrl+Q) or the close box of the window quit the application. If there are unsaved changes, Variance asks "The project has unsaved changes. Quit anyway?" with Save, Discard and Cancel.

Templates#

A template (.vart) is a project whose tables have been emptied: it keeps the types and structure of the tables, their titles, the analyses with their parameters, the graphs with their formatting, the layouts and the notes sheets, but no value and no result. It is used to repeat the same experiment on new data.

  1. Prepare a complete project (tables, analyses, graphs, layout).
  2. File › Save Other › As a Template… (or Save as Template… in the menu of the save-as button of the ribbon); the name offered is "Template.vart".
  3. To reuse the template: open it (File › Open…, "Template" filter), type or paste the new data: analyses and graphs fill in. Save the result under a new name (.var).

For a template to appear in the Start window, save it in the examples folder: this is what File › Save Other › As an Example… does, opening that folder directly (Preferences › Folders › Templates and examples, or by default the Examples subfolder of the configuration folder). The Start window also lists the .var projects placed in this folder (with their data).

Automatic backups and recovery#

Variance regularly saves a backup copy of the project so that you do not lose your work in case of a crash. The settings are in Tools › Preferences…, Saving and Printing section:

  • Automatic backup every (minutes, 0 = never): interval of the backups, from 0 (never) to 120 minutes; 5 by default;
  • Also back up when going to another sheet: also a backup at each change of sheet (unchecked by default);
  • Offer to recover unsaved work at startup: offers to recover the backups at startup (checked by default).

How it works:

  • a backup is written only if the project has unsaved changes; the status bar then shows "Backup saved:" followed by the path;
  • the backup is named "project name.autosave.var" ("Untitled.autosave.var" for a project never saved) and lies in the autosave subfolder of the Variance configuration folder (%APPDATA%\Variance\autosave on Windows);
  • it is deleted when you save the project with Save and when you close it normally (closing, new project, opening another project, quitting Variance);
  • your .var file is never modified by the automatic backup.

If Variance stopped abruptly, the backups stay on disk. At the next startup, the Recover Unsaved Work dialog opens: "Variance closed while these projects had unsaved changes. Automatic backups were kept:", then one line per backup with its age ("12 min ago", "3 h ago", "2 days ago") and two buttons:

  • Recover opens the backup as a new untitled, modified project; the status bar reminds you "Recovered: choose File › Save As to keep this project";
  • Delete deletes the backup from the disk.

Close closes the dialog without doing anything; the remaining backups will be offered at the next startup.

Undo and redo#

Almost every operation that changes the project can be undone: typing and clearing values, pasting, excluding, changing the format or type of a table, creating or deleting sheets, analyses and their parameters, formatting of graphs and layouts, drawn objects, color tags, locking sheets, sticky notes, scripts stored in the project.

  • Edit › Undo (Ctrl+Z, or Alt+Backspace) undoes the last operation; the menu gives its name, for example "Undo Edit cell" or "Undo New analysis".
  • Edit › Redo (Ctrl+Y, or Ctrl+Shift+Z) redoes the operation undone.
  • The buttons of the Edit group of the ribbon do the same; their tooltip names the operation.

Useful rules:

  • the history keeps the last 100 operations; it is cleared when you open a project, create a new one or close the project;
  • an analysis and the graph it creates are undone in a single step; repeated changes of the same setting on the same sheets less than a second and a half apart (typing in a sticky note, dragging a slider) form a single step;
  • undoing the deletion of a sheet restores it and shows it; after an undo, the analyses concerned are recalculated;
  • while typing in a cell or a text field, Ctrl+Z acts on that text; validate (Enter) or leave the field (Esc) to undo project operations;
  • not undoable: preferences, the display (zoom, panels, theme, column widths) and file operations (saving, exporting, printing).

A complete first walkthrough: two groups, from the table to the PDF#

This walkthrough goes through every step of real work on the sample data Two groups (t test): an expression level measured in 12 wild-type mice ("Wild type") and 10 knock-out mice ("Knock-out"). Question: does the mean level differ between the two genotypes? Allow about ten minutes. The values being fixed, you should get exactly the results shown.

Step 1: Create the table#

  1. Open the Start window (at startup, or Ctrl+N).
  2. Click One factor.
  3. Choose an example, then Two groups (t test).
  4. Keep Also draw its graph checked and click Create.

The table "Table 1" holds two data sets:

Data setValues
A: Wild type (n = 12)5.584, 5.303, 5.128, 4.836, 5.718, 5.605, 5.206, 5.238, 5.235, 4.432, 5.348, 5.378
B: Knock-out (n = 10)6.222, 7.028, 6.113, 6.26, 5.928, 7.277, 6.778, 7.058, 7.034, 5.578

Step 2: Look at the data#

  1. Click Graphs › Table 1 in the navigator.
  2. The Dot plot shows each mouse as a point, with the mean and the standard deviation (SD) of each group. Look at it before any analysis: outliers, skewness, very different scatter?
  3. Double-click the title of the Y axis ("Value") and replace it, for example by "Expression (a.u.)"; Enter validates.

Here the two clouds overlap little; the scatter looks somewhat larger in the knock-out mice.

Step 3: Run the t test#

  1. Click the Analyze button of the ribbon (Analyses group). The Choose an Analysis dialog opens on the table "Table 1" (from a graph, its table is offered), with both data sets checked.
  2. Under Compare Groups, click Two-Group Comparisons, then OK.
  3. In the Two-Group Comparisons – settings dialog, Experimental Design tab, check: Unpaired (the mice of the two groups are different animals); Gaussian: parametric test; Unpaired t test (equal SDs); First column (A) = Wild type; Second column (B) = Knock-out.
  4. Options tab: Two-tailed, Confidence level (%) = 95, Significance level (alpha) = 0.05. Click OK.

The sheet "Table 1 – Two-Group Comparisons" appears in the Results section.

Step 4: Read the results#

The Results tab gives:

Row shownValueMeaning
P value<0.0001probability of observing a difference at least this large if the means of the two populations were equal
Significance code***** P < 0.05; ** P < 0.01; *** P < 0.001; **** P < 0.0001; ns otherwise
Difference significant at α = 0.05YesP is below the alpha chosen
t6.391t statistic
df20degrees of freedom (12 + 10 − 2)
Mean of column A (Wild type)5.251mean of group A
Mean of column B (Knock-out)6.528mean of group B
Difference between means (B - A)1.277difference B − A
SEM of the difference0.1998standard error of the difference
95% CI0.86 to 1.69395% confidence interval of the difference
R squared (eta squared)0.6713fraction of the total variance explained by the group
F2.74ratio of the variances (the larger over the smaller)
DFn9degrees of freedom of the larger variance
DFd11degrees of freedom of the smaller variance
P value (of the F test)0.1183test of equal variances
Sample size, column A / column B12 / 10sample sizes analyzed

You can find t by hand from the Descriptive statistics tab (standard deviations 0.3494 and 0.5784):

pooled variance   s²p = [(nA − 1)·sA² + (nB − 1)·sB²] / (nA + nB − 2)
                      = (11 × 0.34943² + 9 × 0.57837²) / 20
                      = (1.34311 + 3.01062) / 20 = 0.217687
standard error    SE  = √(s²p × (1/nA + 1/nB)) = √0.217687 × √(1/12 + 1/10)
                      = 0.466568 × 0.428174 = 0.199773
t statistic       t   = (6.5276 − 5.2509) / 0.199773 = 1.276683 / 0.199773 = 6.391
degrees of freedom df = 12 + 10 − 2 = 20
95% CI            1.2767 ± t(0.975; 20) × SE = 1.2767 ± 2.08596 × 0.199773
                      = 1.2767 ± 0.4167, i.e. 0.860 to 1.693

The exact (two-tailed) P value is 3.1 × 10⁻⁶; Variance shows it as "<0.0001" with the standard P value format.

The Residuals tab checks the normality of the residuals (each value minus the mean of its group): D'Agostino-Pearson K2 = 0.966 (P = 0.6169), Anderson-Darling A2* = 0.254 (P = 0.7316), Shapiro-Wilk W = 0.968 (P = 0.6642); the row "Passed normality test (alpha = 0.05)?" answers Yes for all three. The output table ⊞ Residuals: QQ plot can be plotted as a quantile-quantile graph of the residuals (Plot These Results button).

A careful interpretation:

  • the mean of the knock-out mice exceeds that of the wild-type mice by 1.28 units; the 95% confidence interval (0.86 to 1.69) gives the values of the true difference compatible with the data, under the assumptions of the test (independent samples, Gaussian populations with the same standard deviation);
  • the F test shows no significant difference between the variances (P = 0.12), but this does not prove that they are equal: the SD of the knock-out mice is 1.66 times that of the wild-type mice. Welch's test, which does not assume equal SDs (option Welch's t test (unequal SDs), best chosen before looking at the data), gives t = 6.112, df = 14.23, P < 0.0001 and a 95% CI of 0.8294 to 1.724: the conclusion does not change;
  • the normality tests detect no departure from normality, but with 22 values they have little power: they do not demonstrate that the data are Gaussian;
  • a very small P says that the difference is hardly compatible with the null hypothesis, not that the effect is large or biologically important: the confidence interval tells about the size of the effect.

The details of the calculations, assumptions and variants of the t test are in the "Comparing groups" chapter of the statistics tutorial.

Step 5: Show the comparison on the graph#

  1. Go back to the graph (Graphs › Table 1).
  2. Objects › Significance Brackets… (or, in the Annotate group of the ribbon, the comparisons button, then Significance Brackets…).
  3. In the Significance Brackets dialog: Comparisons from: "Table 1 – Two-Group Comparisons"; under Comparisons to plot:, the comparison "Wild type vs. Knock-out" is checked, with its P value; Show: Asterisks (or P values, preceded by the prefix of Prefix of P values:); Font size: 10 pt; Brackets: 1 pt. Click OK.

A bracket labeled **** joins the two groups. It follows the analysis: if the data change, the annotation changes too.

Step 6: Lay out the page#

  1. Sheet › New Layout… opens the Arrange Graphs on a Layout dialog.
  2. Every graph of the project is checked; here there is only one. Keep Rows = 1 and Columns = 1; Landscape is unchecked (portrait page).
  3. Click Create layout. The sheet "Layout" appears in the Layouts section and shows the page with the graph.

To place more graphs, drag them from the navigator onto the page, or use Format › Graph Grid… (see the "Layouts, results and notes sheets" chapter).

Step 7: Export#

  1. With the layout shown, click the Export… button above the page (or File › Export › This Sheet…, Ctrl+Shift+E).
  2. In the Export dialog, keep Format on PDF - vector, for publications and Color model on Color (RGB).
  3. Click Export…, choose the folder (the name offered is "Layout.pdf") and save. The status bar confirms "Exported" followed by the path.

For a journal that asks for a TIFF image: Format = TIFF - raster, for journals, Resolution (dpi): 300 or 600, TIFF compression = LZW, and Color model = CMYK (TIFF) if the journal requires it. The export options are detailed in the "Import, export, print" chapter.

Step 8: Save#

Press Ctrl+S. The project having no name yet, the save dialog opens: name it, for example "Two groups.var". Table, graph, analysis, annotation and layout are saved together; when the project is opened again, the analysis is recalculated.

Reporting the result#

A model sentence for the Results section:

Variant: three groups and an ANOVA#

Repeat the walkthrough with the sample Three groups (one-way ANOVA) ("Control", "Treated A", "Treated B", 8 values each) and the analysis One-Way ANOVA with its default options. You should get: F = 92.12 with 2 and 21 degrees of freedom, P < 0.0001, R² = 0.8977; Brown-Forsythe test of equal variances F = 0.805 (2, 21), P = 0.4604; Tukey multiple comparisons: Control vs. Treated A, difference −6.905 (95% CI −10.23 to −3.576, adjusted P = 0.0001), Control vs. Treated B, −17.78 (−21.11 to −14.45, P < 0.0001), Treated A vs. Treated B, −10.88 (−14.2 to −7.546, P < 0.0001). The Compact letter display tab assigns the letters a, b and c (three groups all different); Objects › Compact Letter Display… places them on the graph.

Common mistakes#

  • Choosing a table type that does not fit the question. The table type decides which analyses are offered: two groups to compare go in a One factor table, not an XY table; crossed counts go in a Contingency table. A grayed analysis in Choose an Analysis usually points to this problem. The type can be changed afterwards in Format › Table Type and Format….
  • Entering paired data on different rows. For a paired test, the two measurements of a subject must be on the same row; choose Paired or repeated measures: one subject per row in the Start window.
  • Typing numbers that remain text. A unit ("12 mg"), two decimal separators or a letter turn a value into text, shown in red and ignored by analyses. Correct it in the cell.
  • Reading "1,234" as one thousand two hundred thirty-four. A comma alone is read as a decimal separator: "1,234" is 1.234. Type thousands without a separator (1234) or with a space (1 234).
  • Forgetting to save. The automatic backup does not replace File › Save: a backup is deleted when the project is closed normally, and it is written only every 5 minutes by default.
  • Replacing the project by accident. File › New Project and File › Open… replace the open project (after a confirmation if it was modified). To add a table, use File › New Table…; to add the sheets of another file, File › Add Sheets from a File….
  • Undoing at the wrong time. While typing in a cell, Ctrl+Z acts on the text of the cell; validate first to undo a project operation.
  • Concluding too fast. A P > 0.05 does not establish the absence of a difference, a P < 0.05 says nothing about the size of the effect; always look at the confidence interval and at the graph of the data.

Going further#

  • "The interface" chapter: menus, ribbon, navigator, Inspector, status bar, shortcuts and preferences.
  • "Data tables" chapter: the eight types of tables and data entry in detail.
  • "Graphs" chapter: graph types and formatting.
  • Statistics tutorial, chapters "Choosing an analysis" and "Comparing groups".

References:

  • Motulsky H. Intuitive Biostatistics: A Nonmathematical Guide to Statistical Thinking, 4th ed. Oxford University Press, 2018.
  • Zar JH. Biostatistical Analysis, 5th ed. Pearson Prentice Hall, 2010.