User guide · Chapter 03

Data tables

37 min read · 12 sections

All work in Variance starts with a data table. Its type (XY, One factor, Two factors, Contingency, Survival, Proportions, Multivariable or Nested) describes how the data are organized and decides which analyses and graphs are offered. This chapter presents the eight types of tables, the entry formats of Y and X values, entering and editing data the way a spreadsheet does, the Table Type and Format dialog, the display of columns and the notes sheets linked to tables.

Anatomy of a table#

A table is shown as a spreadsheet grid:

  • the first column, Label, holds the row labels (names of subjects, of categories, of the levels of a factor); while empty, it stays narrow; View › Row Labels hides it or shows it again;
  • XY and Survival tables then have an X** column (and, for X values with an error, an **Err-X column);
  • then come the data sets, named by a letter (A, B… Z, then AA, AB…); each can have several subcolumns (replicates or summaries);
  • on the left, the row numbers; a click on a number selects the row.

The header of the grid has three compact rows: the letter of the column ("X", "A", "B"…), then the title of the column or data set (grayed "Name of X" or "Name" while it is empty), then the label of the subcolumn: the letter of the data set ("A") if it has a single subcolumn, "A1", "A2"… for replicates, or "Mean", "SD", "N"… for summaries. The header of the cursor's column stands out. The top-left corner shows the type of the table; a click on it opens Table Type and Format.

Above the grid, a line recalls the type and format (for example "XY table (3 replicate(s))", "One factor table (Mean, SD, N)", "Nested table (3 subcolumns)") and offers the Format Table…, Analyze… and Graph buttons. A locked table shows "LOCKED · READ-ONLY".

Data sets receive a default title: "Series A", "Series B"… for most types, "Outcome 1", "Outcome 2"… for Contingency tables and "Variable A", "Variable B"… for Multivariable tables.

The grid always shows at least 60 rows, and 50 empty rows beyond the last row used: you can type in any of them, the table grows by itself. A project holds at most 100 tables.

The eight types of tables#

The following table summarizes how each type is organized; the sections that follow give the details.

TypeA row is…A column (data set) is…XSubcolumns
XYa point (one X value)a series of Y values (a curve)yesreplicates or summaries
One factora value (or a subject, if the data are paired)a groupnoone (or summaries)
Two factorsa level of the first factora level of the second factornoreplicates or summaries
Contingencya group, a treatment or an exposurean outcomenono
Survivala subjecta group (code 1 or 0)yes (time)no
Proportionsa category(a single data set) the amountsnono
Multivariablean individual or an experimental unita variablenono
Nesteda technical replicatea group (treatment)nothe experimental replicates

XY#

Each row is a point defined by an X value and, for each data set, one or more Y values. Each data set is a series (a curve): for example "Control" and "With antagonist" against the log of the dose. Y values can be entered as a single value, as side-by-side replicates (subcolumns A1, A2…) or as summaries (mean, SD, N…); X values as numbers, numbers with an error, dates or elapsed times (see "X formats").

Uses: dose-response relationships, time courses, standard curves, regression and correlation between two continuous variables, area under the curve.

Analyses offered: Transform, Rescale X (Concentrations), Normalize, Thin Out Rows, Baseline Subtraction and Column Arithmetic, Transpose Table; Descriptive Statistics, Per-Row Summary, Correlation, Frequency Distribution, Curve Smoothing, Derivative and Integral, Area Under Curve; Nonlinear Regression, Standard Curve Interpolation, Simple Linear Regression, Simple Logistic Regression, Smoothing Curve (Spline, LOWESS), Deming Regression, Function Curve.

Graphs: Points joined by a line (default), Points only, Individual replicates, Repeated measures, each replicate connected, Individual replicates, means or medians connected, Line only, Spikes, XY bars, Area fill, Staircase.

One factor#

Each column is a group (a single grouping variable: treatment, genotype…) and each value of a group takes its own row: the values are "stacked" into columns. Groups can have different sizes; the order of the rows has no meaning, except for paired data. For paired data or repeated measures, each row is a subject (an animal, an experiment) and its measurements lie on the same row in the different columns; the row label can name the subject. Summaries (mean, SD, N…) are entered on the first row of each column.

Uses: comparing two groups or more, before-after measurements, comparing a mean with a theoretical value, comparing two measurement methods, ROC curves of a diagnostic test, searching for outliers, normality tests.

Analyses offered: Two-Group Comparisons, One-Sample Tests, One-Way ANOVA, Bland-Altman Agreement, ROC Curve; Descriptive Statistics, Per-Row Summary, Correlation, Frequency Distribution, Normality Tests, Observed vs. Expected Frequencies, Multiple P Values (FDR); Transform, Normalize, Baseline Subtraction and Column Arithmetic, Transpose Table, Share of Total, Outlier Detection.

Graphs: Dot plot (default), Bar graph, Dot plot with bar, Box and whiskers, Violin plot, Box and violin, Before-after, Mean with error, connected, Range bars (min-max), High-low, Estimation plot.

Two factors#

Two grouping variables: the rows are the levels of the first one (their names in the Title column, for example "Placebo", "Low dose", "High dose") and the data sets the levels of the second one ("Male", "Female"). Each cell (row × data set) can hold replicates in subcolumns, or a summary.

Uses: factorial designs with two factors (treatment × sex, dose × time), repeated measures on one factor, a series of row-by-row comparisons (one per gene, for example).

Analyses offered: Two-Way ANOVA, Three-Way ANOVA, Row-by-Row t Tests; Descriptive Statistics, Per-Row Summary, Frequency Distribution; Transform, Normalize, Baseline Subtraction and Column Arithmetic, Transpose Table, Share of Total.

Graphs: Side-by-side bars (default), Stacked bars, Bars in separate blocks, Side-by-side points, Side-by-side points and bars, Overlaid points, Points in separate blocks, Points joined by lines, Side-by-side high-low, Area, Repeated measures, each replicate connected, Side-by-side box plots, Side-by-side violin plots, Heat map, Forest plot.

Contingency#

Each row is a group, a treatment or an exposure (named in the Title column: "Treated", "Placebo"); each column is an outcome ("Disease", "No disease"); each cell holds a count: the number of subjects or events. There are neither X values nor replicates.

Uses: association between two qualitative variables, comparison of proportions, relative risk, odds ratio, sensitivity and specificity of a test.

Analyses offered: Contingency Table Tests; Share of Total, Transform, Normalize, Baseline Subtraction and Column Arithmetic, Transpose Table.

Graphs: Side-by-side bars (default), Stacked bars, Bars in separate blocks, Heat map; parts-of-whole graphs suit as well.

Survival#

Each row is a subject. The X column holds its follow-up time, as a number (days, weeks, months or years, according to the unit chosen when the table was created: the X column is named for example "Days elapsed"), or else its start and end dates: choose "Enter the start and end dates of each subject (Variance computes the times)" when creating the table, or "Times: Start and end dates" in the Inspector. The table then has two columns, "Start date" and "End date" (dates written as in an XY table of dates: 2024-03-01, 01/03/2024…), and the time of each subject is their difference, counted in the unit chosen ("Times in": days, weeks, months or years; a month is 30.4375 days, a year 365.25 days); each data set is a group ("Group A", "Group B"…). For each subject, type in the column of its group 1** if the event (death, relapse…) occurred at that time, **0 if the subject is censored (alive at last contact, lost to follow-up, withdrawn); leave the columns of the other groups empty.

Uses: Kaplan-Meier survival curves and comparison of the groups (log-rank test…).

Analyses offered: Survival Curves (Kaplan-Meier). The Cox model (Cox Proportional Hazards Regression) uses a Multivariable table, which can hold covariates.

Graphs: Survival curve (staircase) (default), Survival as points, Survival staircase with error bars; Objects › Number-at-Risk Table adds the table of the numbers at risk below the curves.

Proportions#

A Proportions table has a single data set: each row is a category (named in the Title column) and the value is its amount (a count, an area, a sum). The categories are mutually exclusive and together make up a whole.

Uses: distribution of a population among categories, comparison of this distribution with an expected one (Mendelian proportions, for example).

Analyses offered: Share of Total, Observed vs. Expected Frequencies; Transform, Normalize, Baseline Subtraction and Column Arithmetic, Transpose Table.

Graphs: Pie chart (default), Donut chart, Stacked bar, Dot matrix (10×10).

Multivariable#

Each row is an individual or an experimental unit, each column a variable: age, weight, sex, response, follow-up time, event… Unlike the other types, the columns accept text: a qualitative variable can be written "M" and "F". Each variable has a type:

  • Auto (default): qualitative (Categorical) if the column holds text, quantitative (Continuous) otherwise;
  • Continuous: numeric variable;
  • Categorical: qualitative variable; its levels are taken in the order in which they appear, the first one being the reference in regressions;
  • Label: label of the rows, not analyzed.

The type is chosen by right-clicking the header of the column (Auto, Continuous, Categorical, Label menu), or in Table Type and Format and the Inspector (list next to the title of each variable).

Uses: multiple regression, logistic regression, Cox model, principal component analysis, clustering, correlation matrices.

Analyses offered: Multiple Linear Regression, Multiple Logistic Regression, Cox Proportional Hazards Regression; Principal Component Analysis (PCA), Hierarchical Clustering, K-means Clustering; Descriptive Statistics, Correlation; Reshape Table, Filter Rows and Compute Variables, Transpose Table.

Graphs: Bubble plot (default), Heat map of variables, Dendrogram.

Nested#

A Nested table describes hierarchical data: each data set is a group (a treatment); each of its subcolumns is an experimental replicate (an animal, a culture, a patient); each row of that subcolumn is a technical replicate (a repeated measurement of the same unit: several cells of the same animal, several wells of the same culture). The number of subcolumns is chosen when the table is created (Units per group in the Start window) and changed in Table Type and Format (Subcolumns:).

Uses: comparing groups when each experimental unit was measured several times. Technical replicates of the same unit are not independent: analyzing them as independent observations (pseudoreplication) overstates the number of degrees of freedom and gives falsely small P values; nested analyses take the hierarchy into account.

Analyses offered: Nested t Test (two groups), Nested One-way ANOVA (several groups); Descriptive Statistics; Transform, Normalize, Baseline Subtraction and Column Arithmetic, Transpose Table.

Graphs: those of One factor tables (Dot plot by default, Bar graph, Box and whiskers…).

Analyses offered for every table#

Function Curve, Transpose Table and the simulations (Random XY Data, Random Groups, Random 2×2 Table, Monte Carlo Simulation) are offered whatever the type of the active table; the simulations produce their own data.

Y entry formats#

XY, One factor and Two factors tables accept two families of formats for their values: individual values (the replicates) or summaries calculated elsewhere. Nested tables always have replicates (their subcolumns); Contingency, Survival, Proportions and Multivariable tables have a single value per cell.

Replicates#

With Replicate values, each data set has from 1 to 100 subcolumns, labeled "A1", "A2"… (a single subcolumn is labeled with the letter of the data set). For each row, Variance computes from the replicates present the mean, the standard deviation (SD, with n − 1 in the denominator) and the count n; an empty or excluded cell is simply ignored, so rows can have different numbers of replicates. Graphs plot the mean and the chosen error bar (SD, SEM, 95% CI…), or each replicate, depending on the graph type; analyses use the individual values or the means according to their nature.

The number of replicates is chosen when the table is created (Replicates per point in the Start window), then changed in Table Type and Format (Replicates:) or with Edit › Rows and Columns › Add a Subcolumn.

Summaries: mean and error#

With a summary format (Center and error, computed elsewhere in the Start window), you enter a mean and a measure of error for each row. The formats and their interpretation:

FormatSubcolumnsWhat Variance infers
Mean, SD, NMean, SD, NSD as entered; n
Mean, SEM, NMean, SEM, NSD = SEM × √n; error bars show the SEM entered
Mean, %CV, NMean, %CV, NSD = %CV / 100 × mean (absolute value)
Mean, SDMean, SDSD as entered; n unknown
Mean, SEMMean, SEMn unknown, hence SD unknown; bars show the SEM
Mean, %CVMean, %CVSD = %CV / 100 × mean; n unknown
Mean, +error, -errorMean, +Error, -Errorasymmetric error bars (upward, downward); SD and n unknown
Mean, upper limit, lower limitMean, Upper, Lowerbars running from the lower limit to the upper limit; SD and n unknown

These relations are the usual definitions:

SEM = SD / √n          so   SD = SEM × √n
%CV = 100 × SD / |mean|     so   SD = %CV × |mean| / 100

Tests that work on summaries need the mean, the SD and n: choose a format with N. In a One factor table, the unpaired parametric t test (Two-Group Comparisons) accepts summaries: it reads the mean, SD and n of each group from the first filled row of the column. Paired tests, nonparametric tests and one-way ANOVA must be run on individual values (ANOVA rejects summaries with the message "one-way ANOVA needs raw replicate values").

Changing the Y format#

The format is changed in Table Type and Format, Y values: list (XY, One factor and Two factors tables). Variance then converts the values:

  • from replicates to a summary: each row receives the mean, the SD (or the SEM, or the %CV) and n computed from the replicates;
  • from one summary to another: the conversion goes through the SD and n (a SEM without n therefore cannot become an SD); to Mean, +error, -error or Mean, upper limit, lower limit, the error displayed (SD, or SEM for the SEM formats) gives the two limits;
  • from a summary to Replicate values: only the mean is kept, in the first subcolumn; the status bar warns "Only the means are kept as replicate values (Undo restores the errors)".

Example: three replicates 2, 4 and 6 become, in Mean, SD, N, the row 4; 2; 3, then, in Mean, SEM, N, 4; 1.1547; 3 (2 / √3), and in Mean, upper limit, lower limit, 4; 5.1547; 2.8453 (mean ± SEM). Cell background colors are kept. Ctrl+Z undoes the conversion.

X formats#

XY tables have four X formats, chosen at creation or in Table Type and Format, X values: list:

  • Numbers: numbers (doses, concentrations, times as numbers…);
  • Numbers with an error ("Numbers with an error (horizontal error bars)" in the welcome dialog): an Err-X column follows the X column; its value draws a horizontal error bar around the point;
  • Dates: calendar dates;
  • Elapsed times: durations in hours, minutes and seconds.

Survival tables have an X column of numbers (the follow-up time); the other types have no X column.

Dates#

An X cell in Dates format accepts:

  • 2024-03-01 (year, month, day);
  • 01/03/2024, 1-3-2024 or 1.3.2024: the day comes first by default; Preferences › View › Read 1-2-2030 as lets you read the month first (2 January);
  • a two-digit year: 00 to 69 are 2000s; 70 to 99 are 1900s (1/3/24 is 1 March 2024);
  • a time after the date: 2024-03-01 12:30 (hh:mm or hh:mm:ss).

The date is displayed as 2024-03-01 (with the time if it has one). An impossible date (31/04/2024) remains text, displayed in red. For analyses and graphs, each date becomes a number of days since the earliest date of the table, which is 0: with 2024-03-08, 2024-03-01 and 15/03/2024, the analyzed X values are 7, 0 and 14. A time counts as a fraction of a day. When created by the welcome dialog, the X column is titled "Days (from the first date)".

Elapsed times#

An X cell in Elapsed times format accepts h:mm (1:30), h:mm:ss (2:05:30) or a number of hours (1.5 is the same as 1:30). It is displayed as h:mm or h:mm:ss; analyses use hours. When created by the welcome dialog, the X column is titled "Hours".

Entering and editing data like a spreadsheet#

The grid works like a spreadsheet: the cursor (the active cell, outlined) moves with the keyboard or the mouse, typing replaces the content, Enter and Tab confirm. The shortcuts below apply when no text field has the keyboard; they only apply to the active sheet (in split view, the second pane merely displays its table).

Moving around#

  • Arrows: one cell in the direction of the arrow; Ctrl+arrow: first row, last used row, first or last column.
  • Home / End: start / end of the row; Ctrl+Home / Ctrl+End: first cell / last used cell.
  • Page Up / Page Down: one screen up / down.
  • Tab / Shift+Tab: cell to the right / to the left; Enter / Shift+Enter: cell below / above.
  • Click: places the cursor on the cell.

The view follows the cursor; the status bar shows its position, for example "Row 4 · B".

Selecting#

  • Shift+click, or Shift with a movement key: extends the selection from the starting cell to the cursor.
  • Dragging the mouse over cells: selects the rectangle covered.
  • Click on the label of a subcolumn (third row of the header: "A", "A1", "Mean"…): selects the column, from the first to the last used row; Shift+click extends to several columns.
  • Click on the top of a data set header (its letter and its title): selects all its subcolumns.
  • Click on a row number: selects the row; Shift+click extends to several rows.
  • Ctrl+A (Edit › Select › All): the whole used part of the table; Ctrl+Space (One factor): the cursor's column; Shift+Space (Row): the cursor's row.
  • Esc: reduces the selection to the active cell.

The row numbers and column labels of the selection stand out. A right-click inside the selection keeps it; a right-click elsewhere first selects the cell clicked.

Entering and editing a value#

  • Type on a selected cell: typing replaces its content; Enter, Tab or an arrow confirm and move the cursor.
  • F2 or a double-click opens the cell for editing without erasing it: the left and right arrows then move within the text; Enter, Tab and the up and down arrows confirm.
  • Esc cancels the edit in progress and restores the old value; a click elsewhere confirms the value and leaves the cursor on its cell.
  • Type below the last row to add rows: the table grows by itself.

Characters obtained with AltGr (@, #, €…) are typed normally. A locked table refuses any entry.

Numbers, text and empty cells#

Variance reads numbers like a spreadsheet:

  • the decimal separator can be the period or the comma ("2.5" or "2,5");
  • spaces between groups of digits are ignored ("1 234,5"); when a number contains both periods and commas, the last separator is the decimal separator ("1,234.5" and "1.234,5" both mean 1234.5);
  • a lone comma is always decimal: "1,234" is 1.234;
  • scientific notation is accepted ("1e-3", "1.5E6"); so is the typographic minus sign (−);
  • the value is kept with all its digits: what you type or paste is what is stored, whatever the display.

An empty cell is a missing value: it is ignored by analyses and graphs. Never replace a missing value with 0. Text typed in a column of numbers is kept as is but displayed in red, with the tooltip "Not a number: kept as text, ignored by analyses"; the status bar points it out at the time of entry. Multivariable tables accept text in all their columns (qualitative variables); the Title column always accepts text.

Clearing#

Delete, Backspace or Edit › Clear clear the selected cells: their value, their exclusion mark and their background color. If the Title column is part of the selection, the corresponding row labels are cleared too. To remove whole rows or columns (and not only their content), see "Inserting and deleting rows and data sets".

Copy, cut and paste#

  • Ctrl+C (Edit › Copy) copies the selection as tab-separated text, ready to paste into a spreadsheet or a document: each number with all its digits, excluded values followed by their asterisk, dates and durations as displayed. By default, Preferences › Saving and Printing › Decimal separator (copy and export) follows the operating system's regional setting (comma or point) and can be overridden to Point or Comma.
  • Ctrl+X (Edit › Cut) copies then clears the selection.
  • Ctrl+V (Edit › Paste) pastes starting from the top-left cell of the selection.
  • Ctrl+Shift+T (Edit › Paste Transposed) pastes while swapping rows and columns.

Pasting rules:

  • the separator is recognized from the first row: the tab (what spreadsheets copy), otherwise the semicolon, otherwise the comma (if the first row has no digit, or if it contains several commas);
  • the pasted block replaces the whole rectangle it covers: an empty cell in the text (empty line, missing field at the end of a line) clears the corresponding cell; empty lines at the end of the text are ignored;
  • a value followed by an asterisk is pasted as an excluded value;
  • if the block overflows to the right, Variance adds the data sets needed; if it overflows at the bottom, rows;
  • a single value pasted onto a selection of several cells fills all the selected cells;
  • pasting into a table where the Title column is hidden does start under the cursor.

Paste Special#

Edit › Paste Special… (Ctrl+Shift+V, or Paste Special… in the context menu) opens the Paste Special dialog, which pastes the clipboard text at the cursor position with options:

  • Text from the clipboard (you can edit it): the text to paste, editable before pasting;
  • Separator: Detect (automatic detection), Tab, Comma, Semicolon or Space;
  • First row: Data (the first row is pasted), Column titles (the first row is a row of titles: it is not pasted) or Detect (Variance decides: a first row of text above a row of numbers is taken for titles);
  • Skip first rows: number of lines to ignore at the start of the text;
  • Keep one row out of: keeps only one row in n (1: all of them);
  • Missing values: the words that stand for a missing value, separated by commas (default "NA, N/A, ., NaN"); they are pasted as empty cells;
  • Transpose (rows become columns): swaps rows and columns;
  • Values followed by * are pasted as excluded (checked by default): when unchecked, the asterisk is removed and the value is pasted normally.

A line summarizes what will be done ("N row(s) × M column(s) will be pasted at row …"); OK pastes, Cancel abandons. Entirely empty lines of the text are ignored.

Filling a selection and creating series#

To give the same value to several cells, copy that value, select the cells and paste: all of them receive the value.

To fill a column with a regular sequence (doses, concentrations, times), place the cursor on the first cell to fill, then Edit › Rows and Columns › Fill with a Series…. The Fill with a Series dialog ("Fills the column of the cursor, starting at the cursor row.") offers:

  • First value: the first value (1 by default);
  • Count: the number of values (10 by default, up to 100,000);
  • Each value is the one above it followed by plus, times or divided by (dilution), and the step or factor.

With plus, the k-th value is "first value + k × step" (computed directly, with no accumulation of rounding errors); with times, each value is the previous one multiplied by the factor; with divided by (dilution), divided by the factor. A factor of zero is refused ("A factor of 0 makes no series"). The series replaces the existing values of the column over its length; it fills an X column or a Y subcolumn, not the Title column.

Example, a twofold dilution series starting from 100 µM: First value 100, Count 8, divided by (dilution) 2 give 100; 50; 25; 12.5; 6.25; 3.125; 1.5625; 0.78125. To analyze a dose-response relationship against the logarithm of the concentration, then transform the X values with Analysis › Prepare Data › Rescale X (Concentrations).

Row labels and autocomplete#

The Title column names the rows: subjects of a paired design, levels of the first factor of a Two factors table, groups of a Contingency table, categories of a Proportions table, individuals of a Multivariable table. These titles appear in graphs (category axis, legends) and in results.

When Preferences › View › Autocomplete titles is checked (the default), Variance completes a row label as you type with the first title already entered that starts with the same letters (case-insensitive): the suggested part is selected; keep typing to refine it, or press Enter to accept it. Typing "pla" under "Placebo" thus gives "Placebo".

Excluding values#

Excluding a value removes it from analyses and graphs without erasing it: it stays in the table, in blue, followed by an asterisk, and can be reinstated at any time. This is the transparent way to set aside an outlier or a failed run, keeping a record of what was done.

  • Select the values, then Ctrl+Shift+D, Edit › Exclude or Include Values, the exclusion button of the ribbon (Format group) or Exclude / include values in the context menu. If at least one of the selected values is included, all are excluded; if all are already excluded, they are reinstated.
  • A value typed or pasted with a trailing asterisk (12*) is excluded as soon as it is entered.
  • Only numbers can be excluded (not text).

Cell colors#

Format › Cell Color colors the background of the selected cells: Yellow, Red, Blue, Green, Purple, Orange, Tan, Gray, or None to remove the color. Color is used to flag values (to check, from the same series…); it has no effect on analyses or graphs. It is kept when you type a new value in the cell, but Clear (Delete) and Cut erase it along with the value.

Inserting and deleting rows and data sets#

In the context menu of a cell:

  • Insert rows: inserts as many empty rows as the selection has rows, above the first selected row;
  • Delete rows: deletes the selected rows (the following rows move up);
  • Insert data set: inserts an empty data set before the cursor's (at the end if the cursor is not in a data set);
  • Delete data set: deletes the cursor's data set;
  • Add a Subcolumn: adds one replicate subcolumn to each data set;
  • Insert… and Delete…: open the dialogs described below.

The Insert (Edit › Rows and Columns › Insert Rows or Columns…) and Delete (Edit › Rows and Columns › Delete Rows or Columns…) dialogs offer Insert rows or Insert data sets (columns) (respectively Delete rows or Delete data sets (columns)), the first row (First row (1 = top)) or the first data set (First data set (1 = A)), prefilled from the cursor, and the number (How many).

Other ways to add: + Add data set in Table Type and Format or the Inspector (at the end of the table); the Rows: field of Table Type and Format to set the number of rows. Other ways to delete: Edit › Rows and Columns › Remove Data Set or the ✖ button of a data set in Table Type and Format. A table always keeps at least one data set ("a data table keeps at least one data set").

Graphs, analyses and individual point formats follow these changes: an inserted or deleted data set does not shift the data sets they use, and a graph that showed all the data sets of the table also shows the new one.

Sorting and reversing#

Edit › Rows and Columns › Sort by X (XY and Survival tables) sorts the rows by increasing X, rows without X at the end; Edit › Rows and Columns › Sort by Row Label sorts them by title, in alphabetical order ignoring case, rows without a title at the end; Edit › Rows and Columns › Reverse Rows reverses the order of the used rows. The same commands are in the menu of the ribbon's sort button (Format group). Rows move as a whole (title, X, all the values, point formats), and the operation is undone with Ctrl+Z.

Finding a value#

Edit › Find… (Ctrl+F) searches for text in the whole project, including cell values and titles. Each result in a table gives the row and column ("Table 1: row 3, Control: 12.5"); a click opens the table and places the cursor on the cell.

Titles#

A table carries several kinds of titles, picked up by graphs (axes, legend) and results:

  • the table name, in the navigator ("Table 1"): it is changed like that of any sheet (double-click in the navigator, F2 outside the grid, Sheet › Rename…);
  • the title of each data set: double-click the top of its header (the letter and the title), type, then Enter (Esc cancels); or Table Type and Format, the Inspector, or Edit › Rows and Columns › Column Names…;
  • the title of the X column: same method (double-click on the "X" header); it becomes the X axis title of new graphs;
  • the subcolumn titles ("A1", "Mean"…), in Edit › Rows and Columns › Column Names…;
  • the row labels, in the Title column.

The Column Titles dialog (Edit › Rows and Columns › Column Names… or Column Names… in the context menu) gathers on one page the X title, the title of each data set and, for data sets with several subcolumns, the title of each one (grayed "Y1", "Y2"… when empty). OK applies all the changes as a single undo step.

The Table Type and Format dialog#

The Table Type and Format dialog gathers the structure of the table. It opens with Format › Table Type and Format…, the Format Table… button above the grid, or a click on the "table type" corner of the grid; the Inspector, when displayed, shows the same settings. Each change applies immediately (and is undone with Ctrl+Z); close the dialog with its close box.

SettingTables concernedEffect
Table type:allchanges the type of the table (see below); a sentence describes the chosen type
X values:XYNumbers, Numbers with an error, Dates, Elapsed times
Times:SurvivalElapsed times (numbers) or Start and end dates (see Survival)
Times in:Survival with datesunit of the computed times: days, weeks, months or years
Y values:XY, One factor, Two factorsReplicate values or one of the eight summary formats (conversion described above)
Replicates:XY, One factor, Two factors with replicatesnumber of replicate subcolumns (1 to 100)
Subcolumns:Nestednumber of experimental replicates (1 to 100)
Rows:allnumber of rows of the table; rows that contain values are never deleted
X title:XY, Survivaltitle of the X column
Data setsallfor each data set: its letter, its title, the variable type (Multivariable) and ✖ to delete it; + Add data set adds one at the end

Save as Default (XY, One factor, Two factors, Survival and Nested tables) makes the format of the table (X, Y, number of replicates or subcolumns, start and end dates with their unit) the format offered for new tables of that type: the creation dialog starts from these choices. The button then gives way to "✔ New XY tables use this format" (according to the type); Restore the original format goes back to the format Variance offers. This choice is a preference: it applies to all projects, and a later change of the format of the table does not modify it.

At the bottom, Analyze… opens Choose an Analysis and New Graph opens the New Graph dialog.

Changing the type of a table#

Choose the new type in Table type:. The values are kept, and the table's graphs and analyses are recomputed. What happens depends on the target type:

  • to XY, One factor, Two factors or Nested: replicates are kept as they are; summary formats are kept for XY, One factor and Two factors, but for Nested only the mean of each summary is kept;
  • to Contingency, Survival, Proportions or Multivariable, which have only one value per cell: if the table had several replicates or a summary format, each row of each data set receives the mean of its replicates (or the mean of the summary), and the status bar warns "Table type changed: the replicates of each row became their mean (Undo restores them)"; otherwise it reads "Table type changed to" followed by the type;
  • the X column is kept, hidden, by the types that have none, and reappears with its values if the table becomes XY again; the X format goes back to Numbers for a type without X.

Example: a Two factors table in which a cell contains the replicates 1, 2 and 6 becomes, as a Contingency table, a table where that cell is 3. Ctrl+Z restores the replicates.

Column width and number display#

Column width#

Columns fit their content by themselves (title and values); the Title column stays narrow while it is empty. They are refitted when the structure changes (data set added or deleted, text size, first values of an empty table), but not while you type.

  • To widen or narrow a column, drag the right edge of its header; the chosen width is kept while you type.
  • Format › Column Width… (or Column Width… in the context menu) opens the Column Width dialog: Width of data columns (pixels), from 30 to 400, gives all the data columns (not the Title column) of all tables the same width. This display setting is not saved in the project and lasts until Variance is closed.

Decimal places displayed#

By default, each column displays its numbers with the number of decimal places of its most precise value (six at most), so that the decimals line up: a column containing 12, 12.5 and 12.25 displays 12.00, 12.50 and 12.25.

Format › Number Format… (or Decimal Places… in the context menu, or the ribbon's decimals button) opens the Decimal Places dialog:

  • Automatic (as entered): the default display described above;
  • when unchecked, Decimal places sets the number of decimal places of all the numbers of the table (0 to 12; 2 suggested).

This setting is saved with the table. It only changes the display: values keep all their digits, in calculations as in copy-paste and export. Dates and durations keep their own format.

A number too long for its column is displayed with fewer significant digits (never losing its integer part); if it does not fit even with three digits, the cell displays ###: widen the column.

Text size#

Format › Larger Text (Ctrl+Shift+.) and Smaller Text (Ctrl+Shift+,) enlarge or reduce the text of all tables (from 8 to 28 points); Preferences › View › Table font size sets the same value. View › Row Labels hides or shows the row labels column again.

Point Style: highlighted points#

To make a point (or a bar) stand out in all the graphs of the data (a particular subject, a value to comment on), select its value in the table, then Format › Point Style… (also in the context menu and the Format group of the ribbon). The Point Style dialog ("Points (or bars) given their own format in every graph of these values:") offers:

  • Data sets from … to … and Rows from … to …: the values concerned, prefilled from the selection;
  • Give these points this format: Color (red suggested), Symbol (Circle, Square, TriangleUp, TriangleDown, Diamond, Plus, Cross, Star, Hexagon, Dash) and Size (in points), each enabled by its checkbox;
  • Restore the data set format for these points: removes the individual format.

OK applies ("N point(s) formatted"). The format follows the values when rows are sorted, inserted or deleted. See also the "Graphs" chapter.

Notes sheets linked to tables#

A notes sheet (Notes section of the navigator) holds constants (a name and a value: experiment date, experimenter, protocol, lot number…) and free formatted notes. It documents either the whole project or a specific table: that is its link.

Linking a notes sheet to a table#

  • At the top of the notes sheet, the Documents: list offers "The whole project" and each table of the project.
  • Format › Attach to a Table… opens the Attach to a Table dialog: "This notes sheet documents:" The whole project, or Data table followed by the name of the table; OK applies.
  • The Inspector of a notes sheet has the same list, Linked to:.

Notes attached to a table are among its linked sheets: it appears in the Linked sheets pane of the navigator and in Open Linked Sheet, and it follows the table in Duplicate Linked Sheets…, Copy Linked Sheets with an Empty Table…, Save Linked Sheets as a Project…, Save Method… and Delete Linked Sheets…. If the table is deleted, the notes sheet documents the whole project again.

Creating a sheet automatically for each table#

Check Preferences › Notes Sheet › Create a notes sheet with each new table: each table created by the welcome dialog or imported then receives a linked notes sheet, named "Notes" followed by the name of the table, with the default constants of Default constants: (Experiment date, Experiment ID, Notebook reference, Project, Experimenter, Protocol, to be filled in).

When importing a text file that contains <Info> and <Notes> sections, their constants and notes go into the table's notes sheet (created if needed): they are never mistaken for data. Import Text… likewise adds the sections of a file to an existing notes sheet.

Editing constants and notes (formatting, links, import and export) is described in the chapter "Layouts, results and notes sheets".

Common mistakes#

  • The wrong table type. Groups to compare go in a One factor table (one group per column), not in an XY table; two crossed factors in a Two factors table; cross-tabulated counts in a Contingency table; subjects described by several variables in a Multivariable table. The type can be changed in Table Type and Format, but think first about how the data are organized.
  • Replicates entered as data sets. In an XY or Two factors table, the replicates of one condition are subcolumns of the same data set (A1, A2…), not separate data sets: otherwise each replicate becomes a curve or a group.
  • Paired data on different rows. In a One factor table, the two measurements of the same subject must be on the same row; a value missing on one side removes the pair from paired analyses.
  • Technical replicates treated as independent. Several measurements from the same animal or the same culture are not independent observations: use a Nested table and a nested analysis, or analyze the mean of each experimental unit.
  • A zero for a missing value. Leave the cell empty: a 0 is a measurement.
  • Text in a column of numbers. "<0,1", "ND", "12 mg" remain text (in red) and are ignored by analyses; decide explicitly how to handle these values.
  • Percentages in a contingency table. Enter the counts.
  • Survival codes other than 0 and 1, or a time entered as dates: the survival analysis stops with a message.
  • SD and SEM mixed up. Choose the summary format that matches the figures you have, and state in the legends what the error bars show.
  • Dates read the wrong way round. 01/03/2024 is 1 March by default; if your dates are written month first, set Preferences › View › Read 1-2-2030 as to 2 January before entering or importing.
  • A duration in minutes typed as a number. "90" is 90 hours; type 1:30.
  • "1,234" for one thousand two hundred thirty-four. A lone comma is decimal: type 1234 or 1 234.

References#

  • Motulsky H. Intuitive Biostatistics: A Nonmathematical Guide to Statistical Thinking, 4th ed. Oxford University Press, 2018.
  • Cumming G, Fidler F, Vaux DL. Error bars in experimental biology. Journal of Cell Biology, 2007, 177(1):7-11.
  • Lazic SE. The problem of pseudoreplication in neuroscientific studies: is it affecting your analysis? BMC Neuroscience, 2010, 11:5.