Statistics tutorial · Chapter 03

Data processing

51 min read · 12 sections

This chapter covers the analyses of the Analysis › Prepare Data family: transforming values (Transform, Rescale X (Concentrations)), normalizing them (Normalize), reducing the number of rows (Thin Out Rows), subtracting a baseline or combining columns (Baseline Subtraction and Column Arithmetic), swapping rows and data sets (Transpose Table), expressing each value as a fraction of a total (Share of Total), flagging outliers (Outlier Detection), and reorganizing a multiple-variables table (Reshape Table, Filter Rows and Compute Variables). These analyses perform almost no statistical testing, yet they decide what will be tested next: a transformation, a normalization or the removal of a point can change the conclusions. Each section therefore states precisely what Variance does, and then when the operation is justified.

The examples use the sample data of the welcome window ("an example"): the XY tables "Enzyme velocity vs. substrate", "Dose-response (log dose, replicates)" and "Exponential decay (time course)", the One factor tables "Paired data (before/after)" and "Two groups (t test)", the Two factors table "Two-way ANOVA (3 rows × 2 data sets, triplicates)", the Proportions table "Distribution of categories", and the Multivariable table "Clinical study (continuous, categorical and outcome variables)".

Common principles#

  • The data are never modified. Each analysis creates a results sheet that contains a summary tab and an output table (a tab preceded by ⊞): the transformed, normalized or cleaned table. Open its tab: the Analyze These Results button analyzes it (it also appears in the Table: list of the "Choose an Analysis" window, as "results name › output table name") and Plot These Results plots it; some analyses (Transform, Rescale X (Concentrations), Normalize, Thin Out Rows, Baseline Subtraction and Column Arithmetic, Outlier Detection) create this graph by themselves.
  • The link with the data is kept. If you correct a value in the original table, the output table is recalculated, along with the analyses that depend on it (unless the "Lock the results (no recalculation)" box is checked). A "data › transformation › test" chain therefore stays up to date, and the results sheet keeps track of each step and its options (Format › Analysis Settings…, Ctrl+Shift+A).
  • Excluded values are ignored. An excluded value (Edit › Exclude or Include Values, Ctrl+Shift+D) takes part in no calculation of this chapter; it remains visible in the original table, in blue, followed by an asterisk.
  • An undefined result gives an empty cell, without any message: logarithm of a zero or negative value, division by zero, square root of a negative number… Always compare the number of values before and after the operation.
  • Every analysis has a "Data sets" tab ("Data sets to analyze:") that chooses the data sets processed, and an "Options" tab that contains at least "Significant digits" (4 by default) and "P value format".

Transform#

The Transform analysis applies a function to every Y value (and, in an XY table, to every X value): logarithm, power, reciprocal, rank, z score, a function you write yourself, or one of the classic transformations of pharmacology and enzymology (Lineweaver-Burk, Eadie-Hofstee, Hanes-Woolf, Scatchard, Hill, log-log). It produces a table of the same type as the original table, containing the checked data sets, transformed.

When to use it#

  • To satisfy the assumptions of a test, when the nature of the data points to it: concentrations, titers or expression levels that are right-skewed, with a standard deviation that grows with the mean (the logarithm makes the distribution more symmetric and the scatter roughly constant); Poisson-type counts (square root); proportions strictly between 0 and 1 (logit).
  • To work on the scale that makes sense. A multiplicative effect (a treatment that doubles expression) becomes additive after a logarithm: the difference between the means of the logs is the log of the ratio of the geometric means.
  • To change unit or origin (Y × K, Y − K), to put variables on the same scale (z score), to move to ranks, to plot a linearized graph for illustration, or to simulate noise.
  • Do not use it to estimate parameters from a linearized graph: fit the nonlinear model to the raw data (chapter 17). The worked example shows why.

Assumptions and checks#

A transformation must be justified and decided before analyzing: by the nature of the measurement, the conventions of the field, or earlier data. Trying several transformations and keeping the one that gives P < 0.05 is a form of hidden multiplicity that invalidates the P value. After transforming, check what you expected: symmetry and normality of the transformed values or of the residuals (Descriptive Statistics, Normality Tests, QQ plot), comparable standard deviations from one group to another, and no emptied cells. If the data contain zeros, the logarithm is not defined: adding a constant (log(Y + 1)) is an arbitrary choice that changes the results.

Step by step in Variance#

  1. Display the table (XY, One factor, Two factors, Nested, Contingency or Proportions) and choose Analysis › Prepare Data › Transform (or the ribbon's Analyze button, then "Transform" in the "Choose an Analysis" window).
  2. Transform tab:
    • "Y transform": the function applied to Y (by default "Y = log(Y)", the base-10 logarithm). The complete list is given below.
    • "K": the constant used by the functions that mention it (1 by default).
    • "Custom Y function": the equation used when the chosen function is "Custom: Y = expression of X, Y and K" (by default Y = Y). It is written in the user equation language (chapter 17), with the names X, Y and K, for example Y = asin(sqrt(Y)) or Y = 100*Y/K; any other name is not reported as an error, but empties every cell.
    • "X transform" (XY tables only): "No transform" (default), "X = log(X)", "X = ln(X)", "X = 1/X", "X = sqrt(X)", "X = X * K", "X = X + K" or "Custom X function", with the "Custom X function" field (default X = X; only X and K have a value there).
  3. Pharmacology tab: "Pharmacology transforms": "None" (default), "Eadie-Hofstee (X = Y/X, Y = Y)", "Hanes-Woolf (Y = X/Y)", "Lineweaver-Burk (X = 1/X, Y = 1/Y)", "Log-log (X = log X, Y = log Y)", "Scatchard (X = Y, Y = Y/X)" or "Hill (X = log X, Y = log(Y/(Ymax-Y)))", with "Ymax (Hill plot)" (100 by default).
  4. Options tab: "Swap X and Y" (unchecked), "Transform each replicate (otherwise the mean)" (checked: each replicate is transformed; unchecked: the replicates of each row are first replaced by their mean), "Random seed (0 = automatic)" (0), then the display options.
  5. Data sets tab: check the data sets to transform, then OK.

The Y functions offered are the following (exact labels):

FamilyFunctions
None"No transform"
Constant K"Y = Y * K", "Y = Y + K", "Y = Y - K", "Y = Y / K", "Y = K - Y", "Y = K / Y", "Y = Y ^ K", "Y = round(Y, K decimals)", "Y = Y + random Gaussian (SD = K)"
Powers, logarithms"Y = Y squared", "Y = square root(Y)", "Y = 1/Y", "Y = log(Y)", "Y = -1*log(Y)", "Y = ln(Y)", "Y = log2(Y)", "Y = 10 ^ Y", "Y = e ^ Y", "Y = 2 ^ Y"
Proportions"Y = logit(Y) = ln(Y/(1-Y))", "Y = probit(Y)", "Y = arcsin(Y)"
Trigonometry, miscellaneous"Y = sin(Y)", "Y = cos(Y)", "Y = tan(Y)", "Y = abs(Y)"
Within each data set"Y = rank(Y) within each data set", "Y = zscore(Y) within each data set"
With X"Y = Y / X", "Y = Y - X", "Y = Y + X", "Y = Y * X", "Y = X - Y"
Free"Custom: Y = expression of X, Y and K"

Calculations#

For each value, Variance proceeds in this order:

1. if "Transform each replicate (otherwise the mean)" is unchecked, the replicates
   of each row are replaced by their mean;
2. without a pharmacology transform:
   Y' = f(Y ; X, K)            chosen Y function; X is the X of the row
                               (in a table without X: the row number 1, 2, 3…)
   X' = g(X)                   chosen X function;
3. with a pharmacology transform, it replaces the Y and X functions and
   applies to the original values:
   Lineweaver-Burk   X' = 1/X        Y' = 1/Y
   Log-log           X' = log X      Y' = log Y
   Hill              X' = log X      Y' = log( Y / (Ymax − Y) )
   Hanes-Woolf       X' = X          Y' = X / Y
   Scatchard         X' = Y          Y' = Y / X
   Eadie-Hofstee     X' = Y / X      Y' = Y
4. "Swap X and Y" finally swaps X and Y.

log is the base-10 logarithm, ln the natural logarithm. A few functions need some precision:

  • z score: z = (Y − m)/s, where m and s are the mean and standard deviation (denominator n − 1) of all the values of the data set (all rows and all replicates);
  • rank: the rank of the value among all those of the data set (1 = the smallest), ties receiving their average rank;
  • "Y = probit(Y)" gives Φ⁻¹(Y), the quantile of the standard normal distribution (without the "+ 5" of the old probit tables); Y must be a proportion strictly between 0 and 1, as for the logit;
  • "Y = round(Y, K decimals)" computes round(Y · 10^K)/10^K with the integer part of K (K = −1 rounds to the nearest ten);
  • "Y = Y + random Gaussian (SD = K)" adds K · z, with z drawn from a standard normal distribution. With "Random seed (0 = automatic)" at 0, the seed is drawn when the analysis is created and then kept (a recalculation gives the same noise); change the seed to get another draw.

Eadie-Hofstee and Scatchard compute X from Y: each value (each replicate, or each mean if the "Transform each replicate" option is unchecked) becomes a row of the output table, with its own X, in the column of its data set. "Swap X and Y" only acts on an XY table with a single data set and a single value per row; otherwise a warning says that it was not applied.

Tables of means and errors (mean and SD, SEM or CV, with or without N; mean ± error; limits). The function is applied to the means, and the error follows:

affine function (Y·K, Y + K, Y − K, Y/K, K − Y, Y/X, Y − X, Y + X, Y·X, X − Y,
z score, random noise): Y' = a·Y + b
   mean' = a·mean + b     SD' = |a|·SD     SEM' = |a|·SEM     N unchanged
   CV' = SD' / |mean'| × 100 ; limits and ± transformed (swapped if a < 0)
other function f (log, reciprocal, power, pharmacology transforms…):
   mean' = f(mean)
   limits = f(mean − error) and f(mean + error), sorted into upper and lower

With a non-affine function, the output table switches to the "mean, upper limit, lower limit" format (N no longer appears there): the SD of the transformed values cannot be deduced from the mean and the SD, and f(mean) is not the mean of the f(Y) (the geometric mean, for example, is not the log of the arithmetic mean). The rank of the means does not keep the errors. Eadie-Hofstee and Scatchard require the individual values. Whenever possible, transform the raw values.

Reading the results#

The "Transform" tab recalls the choices: "Y function", "X function" and "K" (the labels of the lists); with a pharmacology transform, "Pharmacology transform" (plus "Ymax" for Hill) and a "Note" line stating that the Y and X functions are not applied. Other "Note" lines report the change of format of a table of means and errors. The output table ("Transform of" followed by the table name) has the type of the original table and contains only the checked data sets; cells whose result is not defined are empty. The titles do not change: rename the X column or the axis (log, 1/X…) so that the graph stays readable. Variance creates a scatter plot of this table.

Worked example#

Data: the XY example "Enzyme velocity vs. substrate", velocities measured in duplicate for 8 substrate concentrations from 0.5 to 64 µM. In Transform, choose "No transform" for Y, then "Lineweaver-Burk (X = 1/X, Y = 1/Y)" in the Pharmacology tab. First row: X = 1/0.5 = 2; Y = 1/9.408 = 0.10629 and 1/9.278 = 0.10778, values of the output table.

Then run Simple Linear Regression on this output table (16 points): slope = 0.04950, intercept = 0.008427. Since 1/v = (Km/Vmax)·(1/[S]) + 1/Vmax:

Vmax = 1 / 0.008427           = 118.7
Km   = slope × Vmax = 0.04950 / 0.008427 = 5.874 µM

The nonlinear regression of the raw data (chapter 17) gives Vmax = 119.8 and Km = 5.974 µM (95% CI 5.669 to 6.294). The example data are very precise, so the discrepancy remains modest (−1.7% on Km), but the transformation has inverted the structure of the errors: the difference between duplicates is 0.13 in Y at 0.5 µM and 0.7 at 64 µM; in 1/Y, it is 0.00149 at 1/X = 2 and 0.00006 at 1/X = 0.016. The least precise points after transformation are those at low concentrations, which also have the most weight on the slope. With noisier data, the bias becomes substantial.

The default Y function ("Y = log(Y)") plays no part: a pharmacology transform replaces it, and it is indeed 1/Y that is computed.

Reporting the results#

"The strongly skewed cytokine concentrations were log10-transformed before analysis (transformation specified in the protocol); results are expressed as geometric means with their 95% CI." For a linearized graph: "Km and Vmax were estimated by nonlinear regression; the Lineweaver-Burk plot is shown for illustration only."

Common pitfalls#

  • Losing values without noticing: the log of 0 or of a negative value, 1/0, and the logit of 0 or 1 give empty cells.
  • Confusing the log of the mean with the mean of the logs: unchecking "Transform each replicate" transforms the arithmetic mean of the replicates, which is not the mean of the transformed replicates.
  • Back-transforming a standard deviation: the antilog of the mean of the logs is a geometric mean; the antilog of an SD of logs is a multiplicative factor, not an SD.

Rescale X (Concentrations)#

This analysis prepares the X column of an XY table of concentrations for a dose-response curve: it replaces the zero concentration, changes the unit, then takes the logarithm. The Y values are not touched.

When to use it#

The most widely used dose-response equations ("Agonist, log dose…", "Inhibitor, log dose…", chapter 17) expect X = log(concentration). This choice is more than a convention: doses are usually spaced geometrically (half-log, factor of 3 or 10), the curve becomes a symmetric sigmoid, and the uncertainty of LogEC50 is roughly symmetric, whereas that of the EC50 is not. Expressing the concentrations in mol/L first directly gives a LogEC50 in log M (for example −6.78) and a pEC50 = −LogEC50.

Precautions#

The logarithm of 0 does not exist: the control without agonist cannot be placed on a logarithmic axis. Replacing it with a small concentration (two or three log units below the lowest) is an approximation: the fit treats this value as a real dose. It is acceptable if the response is already on the plateau there; check that the results do not change when you divide the replacement value by 10. The alternative is to keep the concentrations as they are and use an "Agonist, linear dose…" equation, which accepts X = 0.

Step by step in Variance#

  1. Display the XY table and choose Analysis › Prepare Data › Rescale X (Concentrations).
  2. Options tab:
    • "Replace X = 0 with": the value that replaces X values exactly equal to zero (empty by default: no replacement);
    • "Then": "No change" (default), "Multiply by K" or "Divide by K", with "K" (1 by default); for example "Multiply by K" with K = 10⁻⁶ to go from µM to M, "Divide by K" with K = 10⁹ to go from nM to M;
    • "Finally": "Do not take the logarithm", "Transform to logarithms (base 10)" (default), "Natural logarithms" or "Logarithms base 2".
  3. Click OK.

Calculations and results#

For each X: replacement of 0 by the given value, then multiplication or division by K, then the logarithm. An X whose result is not defined (log of an unreplaced 0, negative value) becomes empty. The "Transform concentrations" tab gives "Rows transformed", the number of rows that have a valid X after the operation. The output table ("Transformed" followed by the table name) contains the data sets checked in the Data sets tab, with their replicates; Variance plots it as a scatter plot. Its X title becomes "log(original title)", "ln(…)" or "log2(…)" depending on the logarithm chosen (it does not change without a logarithm), but the unit is not modified: after "Multiply by K" or "Divide by K", correct it (for example "log[Substrate], M").

Worked example#

XY example "Enzyme velocity vs. substrate": X from 0.5 to 64 µM. With "Multiply by K", K = 10⁻⁶, and the base-10 logarithm, X becomes log10(0.5 × 10⁻⁶) = −6.301 for the first row and log10(64 × 10⁻⁶) = −4.194 for the last; "Rows transformed" = 8. The title becomes "log([Substrate], µM)", whereas the values are in log M: correct the unit.

With a series X = 0, 1, 3, 10, 30 and 100 nM: without replacement, "Rows transformed" = 5 and the first row no longer has an X. With "Replace X = 0 with" = 0.01 and "Divide by K", K = 10⁹, the X values become −11, −9, −8.523, −8, −7.523 and −7.

Reporting the results#

"Concentrations were converted to mol/L and log10-transformed; the zero concentration was replaced by 10⁻¹¹ M (two log units below the lowest concentration), which did not change the fitted LogEC50."

Common pitfalls#

  • Forgetting the unit conversion: a LogEC50 computed on nM differs by 9 from the one computed in M.
  • Applying the logarithm to X values that are already logs (negative X values become empty).

Normalize#

The Normalize analysis expresses each value of a data set as a percentage (or fraction) of a reference range specific to that data set: one value that defines 0% and one value that defines 100%. It is used to compare curves or experiments whose unit or raw amplitude differs (fluorescence signal from one day to another, number of cells per well…).

When to use it#

  • To express a response as a percentage of a reference response (baseline response = 0%, maximal effect of a reference agonist = 100%), before fitting, for example, "Agonist, log dose, 0-100%, slope 1" (chapter 17).
  • To superimpose on the same graph experiments whose raw signal is not comparable.
  • To express each value as a percentage of the total or of the mean of the data set ("Total of the data set", "Mean of the data set").

What normalization changes for the analysis#

Normalizing is not neutral:

  • The references are treated as exact constants. Yet the smallest and the largest value of a data set are precisely the two measurements most affected by noise (the largest of several noisy values overestimates the true plateau). All the uncertainty of these two values is passed on to the others, but appears in no confidence interval computed afterwards.
  • Normalizing each data set on its own extremes erases differences in amplitude: if a treatment decreases the maximal effect, the curve normalized on its own maximum climbs back to 100% and the decrease disappears. To compare efficacies, define 0% and 100% by common controls (the "Y = value below" option) or do not normalize.
  • A value normalized to 100% no longer has any variability. Normalizing each experiment to its control, then comparing "treated" with "control" by a t test, compares values with a group whose standard deviation is zero by construction. Instead, test the normalized values against 100% (one-sample t test), or better, analyze the treated/control ratios on a log scale (paired t test on the logs).
  • Fitting a curve to normalized data with Bottom = 0 and Top = 100 fixed is legitimate only if 0% and 100% are truly defined by controls. Otherwise, leave Bottom and Top free.

Step by step in Variance#

  1. Display the table (XY, One factor, Two factors, Nested, Contingency or Proportions) and choose Analysis › Prepare Data › Normalize.
  2. Options tab:
    • "Define 0% as": "Minimum of the data set" (default), "First value of the data set" or "Y = value below", with "0% value" (0 by default);
    • "Define 100% as": "Maximum of the data set" (default), "Last value of the data set", "Y = value below" (with "100% value", 100 by default), "Total of the data set" or "Mean of the data set";
    • "Present results as fractions (otherwise percentages)" (unchecked).

Settings with no effect are grayed out: "0% value" and "100% value" are active only with "Y = value below", and "Define 0% as" is grayed out when 100% is the sum or the mean of all values (0% is then zero).

  1. Data sets tab: check the data sets to normalize, then OK.

Calculations#

For each data set, Variance determines Z (0%) and H (100%), then transforms each value:

Normalized Y = S × (Y − Z) / (H − Z)

S = 100 (percentages) or 1 ("Present results as fractions")
Z = smallest value, first value, or given value ("0% value")
H = largest value, last value, or given value ("100% value")
"Total of the data set"     : Z = 0 and H = sum of all the values of the data set
"Mean of the data set" : Z = 0 and H = mean of all the values of the data set

Two details matter. With "Total of the data set" and "Mean of the data set", 0% is zero (Z = 0; the window then grays out "Define 0% as"): the result is the percentage of the total or of the mean. With replicates, the smallest and largest values are searched among all the replicates, and the first and last values are the means of the replicates of the first and last filled rows: with the default options, all normalized values stay between 0 and 100%. A table of means and errors is normalized on the means: the normalization is affine (Y' = a·Y + b, with a = 100/(H − Z)), so the SD and SEM are multiplied by |a|, the CV is recalculated and N is kept.

Reading the results#

The "Normalization" tab has one column per data set and two rows: "Zero (0%)" and "One hundred (100%)", the Z and H values used. Check them: they define everything that follows. The output table ("Normalized" followed by the table name) has the type of the original table; Variance plots it as a connected scatter plot.

Worked example#

XY example "Dose-response (log dose, replicates)", default options. The Normalization tab gives:

ControlWith antagonist
Zero (0%)2.0090
One hundred (100%)103.699.92

For Control, Z = 2.009 is the smallest value of the data set (third replicate at X = −9) and H = 103.6 the largest. The first replicate at X = −7 (36.67) becomes 100 × (36.67 − 2.009)/(103.6 − 2.009) = 34.12%. For With antagonist, Z = 0 and H = 99.92: all normalized values are between 0 and 100%.

Above all, each curve is brought back to its own maximum, so any drop in efficacy caused by the antagonist would be erased. Now suppose that control wells had given a baseline response of 2 and a maximal response of 100 to the reference agonist. With "Y = value below" for both bounds (0% value = 2, 100% value = 100), the two curves are expressed on the same scale: at X = −4, Control gives 98.2, 103.5 and 103.7%; With antagonist gives 95.3, 99.9 and 94.9%. The two curves reach a similar plateau, which can now be read directly: the antagonist shifts the curve to the right without reducing the maximal effect (the fits of chapter 17 confirm it: Top = 101.4 and 99.41).

Reporting the results#

"For each experiment, the response was normalized between the baseline response (0%) and the maximal response to 10 µM of the reference agonist (100%), measured in control wells; the curve was fitted to the normalized values with Bottom and Top free."

Common pitfalls#

  • Normalizing each data set on its own extremes, then drawing conclusions about the maximal effect or the baseline level.
  • Forgetting that Z and H are noisy measurements treated as exact.
  • Comparing a control normalized to 100% (without variability) with a treated group by a t test.
  • Normalizing replicates without checking "Zero (0%)" and "One hundred (100%)": values outside 0–100% are then normal.

Thin Out Rows#

The Thin Out Rows analysis reduces an XY table: it either keeps only the rows whose X lies within an interval, or replaces each group of K consecutive rows (in X order) by their mean.

When to use it#

  • To isolate part of a curve before an analysis that does not select it itself (for example the initial, linear phase of a kinetic before a linear regression). Nonlinear regression does not need it: its Range tab already ignores points outside an interval of X.
  • To lighten a long series (one recording per second for an hour) before plotting it.

The interval must be set before looking at the result, for an experimental reason (linear range of the detector, duration of the initial phase). Adjusting the interval until you get a nice fit or a significant P value is data selection.

Step by step in Variance#

  1. Display the XY table and choose Analysis › Prepare Data › Thin Out Rows.
  2. Options tab:
    • "Method": "Exclude rows outside a range of X" (default) or "Sort by X and average every K rows";
    • "Keep rows with X ≥" and "Keep rows with X ≤": the bounds (empty by default: no bound; the bounds themselves are kept);
    • "K (rows to average)": 2 by default, from 2 to 1000.
  3. Data sets tab: check the data sets to keep, then OK.

Calculations#

Rows without X are discarded and the others sorted by increasing X, in both methods. Each data set keeps only one value per row: the mean of its replicates (or the entered mean, for a table of summary values). With "Sort by X and average every K rows", the sorted rows are grouped by K consecutive rows, the last group possibly being incomplete; the X of the group is the mean of its X values, and its Y the mean of the values of its rows (each row counts once, whatever its number of replicates; an empty row is ignored).

Reading the results#

The "Thin out rows" tab gives "Rows in result". The output table ("Pruned" followed by the table name) is an XY table with one value per row and per data set; Variance plots it as a scatter plot. The replicates and their scatter are no longer available in this table: an analysis run afterwards sees only the means.

Worked example#

XY example "Dose-response (log dose, replicates)", bounds −8 and −5: "Rows in result" = 7 (X = −8, −7.5, …, −5). At X = −8, Control is (5.687 + 9.269 + 5.203)/3 = 6.720.

XY example "Exponential decay (time course)" (12 rows in duplicate, from 0 to 11 h), "Sort by X and average every K rows" with K = 2: 6 rows. The first has X = (0 + 1)/2 = 0.5 and Y = (100.75 + 72.74)/2 = 86.745, the mean of the means of the first two rows. With K = 5, 3 rows remain, at X = 2, 7 and 10.5; the last one summarizes only 2 rows (10 and 11 h).

Reporting the results#

"The initial slope was estimated by linear regression on the points from 0 to 10 min, the linear range defined in the protocol."

Common pitfalls#

  • Choosing the interval after seeing the fit.
  • Losing the replicates without realizing it: the number of points of a regression run afterwards is no longer the same.
  • Treating averaged points as independent measurements (in a time series, neighboring points are correlated) and forgetting that they are less scattered than the original measurements.

Baseline Subtraction and Column Arithmetic#

The Baseline Subtraction and Column Arithmetic analysis combines each value with a reference value, the "baseline": subtraction, ratio, percentage, percent change, sum or product. The reference is either a data set (column), paired row by row, or, for each data set, its first or last row, or the mean of its first N or last N rows.

When to use it#

  • Subtracting a background measured in a separate column: nonspecific binding, absorbance blank, autofluorescence ("A data set (column) is the baseline", "Difference").
  • Removing a starting level: signal before stimulation ("Mean of the first N rows") or residual signal at the end of a kinetic ("Mean of the last N rows").
  • Expressing a change: individual after − before difference in a paired design, F/F0 ratio or ΔF/F0 change in imaging ("Ratio", "Percent difference").

The choice between difference and ratio depends on the nature of the artifact: a background that adds to the signal is subtracted; a factor that multiplies the signal (number of cells, loading efficiency of a probe) is corrected by a ratio.

Assumptions and checks#

  • The baseline is measured with error. Subtracting a noisy value adds its variance: if v and b are independent, var(v − b) = var(v) + var(b). A baseline averaged over N rows or N wells is more precise (its variance is divided by N). When the same baseline is removed from all the values of a data set, its error is passed on to all of them: the corrected values are no longer independent of one another.
  • A ratio is unstable if the reference is close to zero; it is also asymmetric (doubling = +100%, halving = −50%): analyze the logarithm of the ratio instead.
  • Change and starting level are related. In a comparative trial, comparing changes between groups is less powerful than analysis of covariance of the final value adjusted for the initial value (Vickers and Altman, 2001), and subjects selected for an extreme initial value partly "improve" through mere regression to the mean.

Step by step in Variance#

  1. Display the table (XY, One factor, Two factors, Nested, Contingency or Proportions) and choose Analysis › Prepare Data › Baseline Subtraction and Column Arithmetic.
  2. Options tab:
    • "Baseline": "A data set (column) is the baseline" (default), "First row", "Last row", "Mean of the first N rows" or "Mean of the last N rows";
    • "Baseline data set": the data set used as the reference with the first option (by default the first data set);
    • "N rows": N for the two "Mean of…" options (3 by default);
    • "Calculate": "Difference (value - baseline)" (default), "Ratio (value / baseline)", "Percentage (100 * value / baseline)", "Percent change (100 × (value − baseline) / baseline)", "Sum (value + baseline)" or "Product".
  3. Data sets tab: check the data sets to correct, then OK. The reference data set does not need to be checked; it does not appear in the result.

Calculations#

v = a value of a corrected data set, b = its baseline
Difference          v − b              Ratio               v / b
Percentage          100 · v / b        Percent difference  100 · (v − b) / b
Sum                 v + b              Product             v · b

With a reference data set, b is the value of that data set on the same row and in the same replicate (replicate 1 with replicate 1, etc.; if the reference has fewer replicates, its last replicate); if that cell is empty, b is the mean of the replicates of the reference on that row, and if the reference row is empty, the result is empty too. With the row-based options, each data set has its own baseline: the mean of its replicates on the first row, on the last used row of the table, or the mean of the means of its first N (or last N) rows, empty rows being ignored. The baseline rows themselves are transformed like the others (the first row becomes 0 with "Difference" and "First row"). An undefined result (division by 0) gives an empty cell. With a table of means and errors, the operation applies to the means, the baseline (a mean) being treated as a constant: each calculation is affine (a·Y + b), so the SD and SEM are multiplied by |a|, the CV is recalculated and N is kept. The uncertainty of the baseline is not propagated.

Reading the results#

The "Baseline" tab recalls the choices by their labels ("Baseline" and "Calculation"), then "Baseline data set" (the reference data set) or, with the row-based options, the baseline value of each data set ("Baseline of" followed by the data set name). The output table ("Baseline-corrected" followed by the table name) has the type of the original table and contains the corrected data sets; Variance plots it as a scatter plot.

Worked example#

Paired design. One factor example "Paired data (before/after)" (10 subjects), default options: the reference is data set A, "Before", and the output table contains "After" − "Before" for each subject: −7.5, −9.8, −6.0, −7.8, −11.9, −7.1, −5.2, −8.6, −4.1, −5.1. Their mean is −7.31 and their standard deviation 2.371: the paired t test (chapter 14) is run on these differences. With "Percent difference", subject 1 gives 100 × (119.7 − 127.2)/127.2 = −5.90%; the mean of the individual changes is −6.05%, whereas the change of the mean is −6.04%: these are not the same quantities, so state which one you report.

Residual signal. XY example "Exponential decay (time course)", "Mean of the last N rows" with N = 3 and "Difference": the baseline is the mean of the means of rows 9, 10 and 11 h, (15.295 + 12.46 + 13.32)/3 = 13.692. The first value, 101.2, becomes 101.2 − 13.692 = 87.508; some late values become negative (−1.132 and −3.252), which is expected: the noise fluctuates around the baseline. Do not delete them.

Paired replicates. With the example "Dose-response (log dose, replicates)" and Control as the reference, each replicate of With antagonist is reduced by the replicate of the same rank of Control (at X = −9: 0.197 − 4.292 = −4.095). This pairing makes sense only if replicates of the same rank are truly linked (same plate, same experiment); otherwise, subtract the mean of the reference.

Reporting the results#

"Nonspecific binding, measured in the presence of an excess of unlabeled ligand, was subtracted point by point from total binding." Or: "Results are expressed as change from the basal level, the mean of the three measurements preceding stimulation (ΔF/F0)."

Common pitfalls#

  • Subtracting a background measured with a single noisy value, and forgetting that its error is passed on to all the corrected values.
  • Deleting values that became negative after subtraction: they are the normal expression of noise.
  • Pairing replicates that are not paired.
  • Dividing by a baseline close to zero.
  • Comparing percent changes between groups without accounting for the starting level.

Transpose Table#

The Transpose Table analysis swaps rows and data sets: each data set becomes a row, and each row becomes a data set. It accepts all table types and produces a Two factors table.

When to use it#

  • To change the organization of a grouped bar graph: grouping the bars by sex rather than by dose, for example.
  • To present in columns measurements entered in rows, before an analysis that compares columns.

If you only want to reorganize a graph, Format › Order and Orientation › Swap Rows and Columns (graph menu) is enough and does not create a new table. To transpose raw values at data entry, Edit › Paste Transposed (Ctrl+Shift+T) pastes the clipboard while swapping rows and columns.

Step by step in Variance#

  1. Display the table and choose Analysis › Prepare Data › Transpose Table.
  2. There is no calculation option: the Options tab contains only the display options. In the Data sets tab, check the data sets to transpose, then OK.

Calculations#

The new table has one row per checked data set (its title becomes the row label) and one data set per row of the original table, up to the last used row. The title of each new data set is the title of the original row, failing that its X value (as text), failing that "Row n". Each cell receives a single value, the mean of the replicates of the original cell (or the entered mean for a table of summary values); a cell without a numeric value (empty, text of a categorical variable) stays empty. Replicates, SDs and numeric X values are therefore not transposed.

Reading the results#

The "Transpose" tab gives "Rows" (the number of rows of the new table, that is, of transposed data sets) and "Data sets" (the number of data sets of the new table). The output table is called "Transpose of" followed by the table name; no graph is created automatically (Plot These Results button of the table tab).

Worked example#

Two factors example "Two-way ANOVA (3 rows × 2 data sets, triplicates)": rows Placebo, Low dose and High dose; data sets Male and Female, in triplicate. The transposition gives "Rows" = 2 and "Data sets" = 3: rows Male and Female, data sets Placebo, Low dose and High dose. The Male/Placebo cell is (20.96 + 20.26 + 19.82)/3 = 20.347; Female/High dose is 47.197.

With the XY example "Simple linear regression" (2 data sets, 10 times), you get 2 rows (Sample A, Sample B) and 10 data sets titled "0", "2", … "18": the times are now only titles.

Common pitfalls#

  • Analyzing the transposed table as if it contained the raw data: a two-way ANOVA on the transposed example would have only one value per cell, without replicates, and could no longer test the interaction. For such an analysis, re-enter (or paste with Paste Transposed) the individual values.
  • Losing the numeric X values of an XY table, which become titles.

Share of Total#

The Share of Total analysis divides each value by the total of its column, its row or the whole table, and expresses it as a percentage or a fraction. For counts, it also gives the confidence interval of each proportion. It accepts One factor, Two factors, Contingency and Proportions tables.

When to use it#

  • To describe how a count is distributed among categories (genotypes, stages, cell types) with the uncertainty of each proportion.
  • To read a contingency table in percentages. The direction of the percentage depends on the design: if the rows are the groups compared (Treated, Placebo) and the columns the outcome, "Its row total" gives the proportion of diseased individuals in each group (the risk, relevant in a prospective study or a trial); "Its column total" gives the distribution of the groups among the diseased, which is the only possible reading in a case-control study.

The confidence intervals assume that the values are counts of independent individuals, each counted in a single category. They make no sense for measurements (areas, concentrations, amounts) or for means of replicates. They are individual intervals: the probability that all of them contain their true value at the same time is below 95%. To test an expected distribution, use a test (Observed vs. Expected Frequencies, or the chi-square test of a contingency table, chapter 15), not the overlap of the intervals.

Step by step in Variance#

  1. Display the table and choose Analysis › Prepare Data › Share of Total.
  2. Options tab:
    • "Divide by": "Its column total" (default), "Its row total" or "The grand total";
    • "Express as percentages" (checked; unchecked: fractions from 0 to 1);
    • "Compute binomial confidence intervals (column totals)" (checked) and "Confidence level (%)" (95 by default); the intervals are computed only with "Its column total".
  3. Data sets tab: check the columns to include (only they enter the row totals and the grand total), then OK.

Calculations#

Each cell is its value, or the mean of its replicates in a Two factors table with replicates. For the cell in row i and column j:

fraction = S · x(i,j) / T        S = 100 (percentages) or 1
T = total of column j, total of row i, or grand total (sum of the checked columns)

Wilson (score) interval, without continuity correction, for p = x/n, n = column total:
  center     = ( p + z²/(2n) ) / ( 1 + z²/n )
  half-width = z / ( 1 + z²/n ) · √( p(1 − p)/n + z²/(4n²) )
  bounds brought back into [0, 1], then multiplied by S ; z = 1.96 for 95%

Recommended by Brown, Cai and DasGupta (2001), this interval keeps, unlike the Wald interval (p ± z·√(p(1 − p)/n)), a coverage close to the stated level for small counts and for proportions close to 0 or 1.

Reading the results#

The "Share of total" tab has one column per data set and one row per row of the table (row label, or "Row n"), then the denominators, in raw values: the "Total" row (column totals) with "Its column total", a "Total" column (total of each row) with "Its row total", and, with "The grand total", the "Total" row followed by "Grand total". The "95% CI of fractions" tab (depending on the level chosen) gives the intervals. The output table ("Share of total of" followed by the table name) contains the fractions; it is a Proportions table if the original table is one, a Two factors table otherwise. No graph is created automatically.

Worked example#

Proportions example "Distribution of categories": Mendel's peas, 315 round yellow, 108 round green, 101 wrinkled yellow and 32 wrinkled green, total 556. Default options:

CategoryFraction (%)95% CIExpected 9:3:3:1 (%)
Round yellow56.6552.50 to 60.7156.25
Round green19.4216.35 to 22.9218.75
Wrinkled yellow18.1715.18 to 21.5918.75
Wrinkled green5.7554.106 to 8.0126.25

For Round yellow: p = 315/556 = 0.56655; z²/(2n) = 0.003455; 1 + z²/n = 1.006909; center = 0.56609; half-width = 1.94652 × √(0.00044168 + 0.0000031066) = 0.041052; hence 52.50% to 60.71%. The observed proportions are close to the expected ones; it is a goodness-of-fit test (Observed vs. Expected Frequencies) that will say whether the discrepancy is compatible with chance, and a high P value would not prove that the 9:3:3:1 ratio is exact.

Contingency example "Treatment and outcome (2×2)" with "Its row total": 15% diseased among the treated against 32% under placebo (no interval with this option). With "Its column total", the Disease column gives 31.91% treated (95% CI 20.40 to 46.17) among the 47 diseased. In both cases, the "Total" row shows 47 and 153.

Reporting the results#

"Of 556 peas, 56.7% (Wilson 95% CI: 52.5 to 60.7%) were round and yellow, 19.4% (16.4 to 22.9%) round and green, 18.2% (15.2 to 21.6%) wrinkled and yellow, and 5.8% (4.1 to 8.0%) wrinkled and green."

Common pitfalls#

  • Computing binomial intervals on measurements or on means.
  • Choosing the wrong total in a contingency table (row and column percentages do not answer the same question).
  • Concluding that there is a difference because two intervals do not overlap, or that there is no difference because they do.

Outlier Detection#

The Outlier Detection analysis looks, in each column of a One factor table, for values too far from the others to be compatible with a single normal distribution. Three methods are offered: ROUT (default), the Grubbs test (a single value) and the iterative Grubbs test. It lists the flagged values and provides a copy of the data without them; it never modifies the table. For curves, the ROUT method of nonlinear regression is described in chapter 17.

When to use it#

  • To flag, with an objective criterion set in advance, values to check: a misplaced decimal point, a badly pipetted well, a contaminated sample.
  • To document the decision: the method, its threshold and the flagged values appear in the results.
  • Never to "clean" data until the hoped-for result appears.

Assumptions and checks#

A flagged value is not a wrong value. It may come from an error (in data entry, in handling), from real biological variability (a non-responder), from a distribution that is not normal (lognormal data naturally have large isolated values: look for outliers on the logs), or from chance (in a large sample, extreme values are expected). Rules of good practice:

  • Never remove a point without a reason. First look for the cause (lab notebook, raw instrument data). If an error is identified, correct it, or exclude the value for that reason. Without a cause, keep the value, or present the analysis with and without it.
  • Fix the method and the threshold in the protocol, and apply them to all groups. Changing the method or the threshold after seeing the results voids any guarantee.
  • Always report the removed points: how many, which ones, why, by what method, and whether the conclusions change.
  • Prefer exclusion to deletion: Edit › Exclude or Include Values (Ctrl+Shift+D) removes the value from the analyses while leaving it visible in the table (in blue, with an asterisk), which keeps a trace of the decision.
  • Assumptions of the tests: apart from outliers, the values of a column follow a normal distribution, are independent and form a single group (do not combine different groups in one column). With fewer than 3 values, no test is performed; with fewer than about ten, power is low.
  • Multiplicity: each column is tested separately. With Grubbs at a threshold of α = 5%, about one column in twenty with no outlier at all will show one. ROUT controls the false discovery rate Q among the values declared outliers.

Step by step in Variance#

  1. Enter each group in a data set of a One factor table and choose Analysis › Prepare Data › Outlier Detection.
  2. Options tab: "Method": "ROUT (default)" (default), "Grubbs (one outlier)" or "Iterative Grubbs"; "ROUT coefficient Q (%)" (1 by default, from 0.0001 to 10, grayed out with Grubbs); "Grubbs alpha" (0.05 by default, from 0.0001 to 0.5, grayed out with ROUT).
  3. Data sets tab: check the columns to examine, then OK.

Calculations#

Grubbs test (two-sided), on the n values of the column:

G = max |xi − x̄| / s            x̄, s: mean and standard deviation (n − 1) of the n values
t = quantile 1 − α/(2n) of Student's t distribution with n − 2 df
Gcrit = (n − 1)/√n · √( t² / (n − 2 + t²) )
The value farthest from x̄ is an outlier if G > Gcrit.

"Iterative Grubbs" removes the flagged value and starts again, at the same α, on the remaining values, until a test is no longer significant.

ROUT (Motulsky and Brown, 2006) fits a robust model, here a constant (K = 1 parameter), then decides by the Benjamini and Hochberg (1995) rule:

1. robust location m: Cauchy M-estimator (iteratively reweighted least squares),
   starting from the median
     wi = 1 / (1 + ((xi − m)/c)²),   c = 2.385 × P68,   m ← Σ wi·xi / Σ wi
   P68 = the ⌈0.6827 n⌉-th smallest |xi − m|, recomputed at each iteration (100 at most)
2. residuals ri = xi − m ;  RSDR = P68 · n / (n − K)      robust SD of the residuals
3. ti = |ri| / RSDR ;  Pi = 2 · P(T > ti), Student's t distribution with n − K df
4. residuals ranked from largest to smallest: the k-th is compared with Q · k / n
   (the largest with Q/n); if the k-th is below its threshold, it is an outlier, as are
   all the larger residuals (step-up procedure).

If at least 68% of the values are equal, P68 is zero (up to rounding, 64ε times the largest absolute value): there is no robust scale, no value is declared an outlier and the "RSDR" and "P (most extreme value)" rows stay empty. Both tests work on the values minus the first one (an exact subtraction for nearby values), to keep every digit of values that share many leading digits.

ROUT or Grubbs? The Grubbs test computes x̄ and s with all the values, including the outliers, which inflate s: two outliers can mask each other. ROUT relies on a robust location and standard deviation, little influenced by outliers: it finds several. The thresholds are not comparable: α (5% by default) is the risk of wrongly declaring at least one outlier in a column that has none; Q (1% by default, the value recommended by Motulsky and Brown) is the average proportion of false discoveries accepted among the values declared outliers. In the absence of any outlier, the Benjamini-Hochberg rule limits to about Q the probability of declaring at least one.

Reading the results#

The "Outliers" tab has one column per data set: "Method" (the label of the method), "Number of values", "Outliers found" and "Outlier values" (the flagged values, separated by commas); with the single Grubbs test, "G (most extreme value)" and "Critical G (alpha = …)". With ROUT, three rows give the quantities behind the decision: "Robust center" (the robust center m), "RSDR (robust SD of residuals)" and "P (most extreme value)", the P value of the value farthest from the center (to compare with Q/n). Two output tables: "Cleaned data", the remaining values of each column (Variance plots it as a scatter plot), and "Outliers", the flagged values. "Cleaned data" is a copy of the analyzed data sets in which the flagged values are erased: each value stays on its row, which preserves the pairing.

Worked example#

One factor example "Two groups (t test)", Wild type data set: 12 values, mean 5.251, SD 0.3494. On the original data, no method finds an outlier. Now modify a copy of the table.

1. A data entry error. The value 5.718 in row 5 is entered as 57.18. All three methods flag it ("Outlier values" = 57.18). Grubbs by hand: x̄ = 9.5394, s = 15.006, G = (57.18 − 9.5394)/15.006 = 3.175; t(1 − 0.05/24; 10 df) = 3.6915; Gcrit = 11/√12 × √(13.627/23.627) = 2.412 < G. ROUT (rows "Robust center" 5.241 and "RSDR" 0.397): m = 5.2411; P68 = 9th smallest |residual| = 0.36389; RSDR = 0.36389 × 12/11 = 0.39697; for 57.18, t = 51.939/0.39697 = 130.8 and P < 10⁻¹⁸, below Q/n = 0.01/12 = 0.00083; the next residual (4.432) gives t = 2.038, P = 0.066, above 2Q/n = 0.0017. The right response is not to remove 57.18 but to correct the entry.

2. Two contaminated samples (masking). Rows 5 and 10 are 7.0 and 7.1. Grubbs: x̄ = 5.5801, s = 0.7156, G = (7.1 − 5.5801)/0.7156 = 2.124 < 2.412: nothing is flagged, and iterative Grubbs stops at the first test. ROUT (Q = 1%): m = 5.3431, RSDR = 0.28575; 7.1 gives t = 6.15, P = 7.2 × 10⁻⁵ < 0.00083; 7.0 gives t = 5.80, P = 1.2 × 10⁻⁴ < 0.0017: both are flagged. Two equal values very far from the others give at most G = √((n − 1)(n − 2)/(2n)) = 2.14 for n = 12: Grubbs cannot detect them, however far away they are.

3. A borderline value. Row 5 is 6.6. Grubbs (α = 0.05): G = 2.493 > 2.412, value flagged. ROUT with Q = 1%: t = 3.763, P = 0.0031 > 0.00083, nothing is flagged; with Q = 5%, P < 0.05/12 = 0.0042, the value is flagged. The two methods do not contradict each other: they do not have the same threshold. Nothing says that 6.6 is an error; this is exactly the kind of value that is not removed without an experimental reason.

Reporting the results#

"Outliers were sought in each group with the ROUT method (Q = 1%), a criterion set before the analysis. One value (57.18) was flagged in the wild-type group; the lab notebook showed a data entry error (5.718), which was corrected. No value was removed." If a value is excluded without an identified cause, give the results with and without it.

Common pitfalls#

  • Removing a value because it is flagged, without looking for the cause, or without reporting it.
  • Rerunning the analysis on "Cleaned data": each pass finds new "outliers".
  • Trying several methods or thresholds until a point disappears (or appears).
  • Looking for outliers in skewed data without log-transforming them, or in a column that mixes several groups.
  • Relying on the Grubbs test when two or more values may be outliers.

Reshape Table#

A Multivariable table contains one row per subject and one column per variable. Many analyses and graphs expect another organization: one column per group (One factor table) or one variable as a function of another (XY table). Reshape Table builds these tables.

When to use it#

  • To compare a continuous variable between the categories of another (weight by sex) with the analyses of One factor tables: t test, ANOVA, column graphs.
  • To study one variable as a function of another (weight as a function of height) with the XY analyses and graphs.

Step by step in Variance#

  1. Display the Multivariable table and choose Analysis › Prepare Data › Reshape Table.
  2. Options tab:
    • "Create": "One factor table: response grouped by a categorical variable" (default) or "XY table: one variable vs another";
    • "Outcome variable (Y)": the variable studied (by default the first continuous variable, other than the grouping variable);
    • "Grouping (or X) variable": the grouping variable, or the X variable (by default the first categorical variable of the table, otherwise the first variable). With the example, the window proposes Sex as the grouping and Age as the response: choose the response you want, and for an XY table, a continuous X variable.
  3. Click OK.

Calculations and results#

With a One factor table, each level of the grouping variable becomes a column (in the order of levels defined for the variable, failing that in order of appearance; a numeric variable is treated as a list of levels), which receives the response values of the rows of that level. A row without a response or without a level is ignored. With an XY table, X is the grouping variable and Y the response; only rows where both are numbers are kept, so a categorical variable as X gives no points. The "Extract" tab recalls "Response" and "Grouping / X". The output table is called "Extracted from" followed by the table name; no graph is created automatically.

Worked example#

Multivariable example "Clinical study (continuous, categorical and outcome variables)" (40 patients). With Response = Weight and Grouping = Sex, the resulting One factor table has two columns, "M" then "F" (order of appearance), of 20 values each: means 69.44 and 60.27 kg, SD 4.07 and 3.16. It lends itself directly to a t test (chapter 14). With "XY table: one variable vs another", Response = Weight and X = Height, you get 40 points, X titled "Height", ready for a regression (chapter 16).

Common pitfalls#

  • Keeping the proposed variables without checking them: the default response is the first continuous variable, not necessarily the one you are interested in.
  • Grouping by a continuous variable (age, weight): each distinct value becomes a group. First create a class variable with Filter Rows and Compute Variables (for example Older = IF(Age >= 50, 1, 0)), keeping in mind that splitting a continuous variable loses information.
  • Choosing a categorical variable as the X of an XY table: no points are created.

Filter Rows and Compute Variables#

Filter Rows and Compute Variables creates, from a Multivariable table, a new table that keeps only certain rows (a filter) and certain variables, and adds calculated variables (body mass index, ratio, score…).

When to use it#

  • To analyze a subgroup defined in advance (patients aged 50 and over, responders).
  • To compute a derived variable before a regression or a graph.

A selection decided after seeing the data, or multiplied over many subgroups, increases the risk of false positives: report the selection criterion and the number of rows discarded.

Step by step in Variance#

  1. Display the Multivariable table and choose Analysis › Prepare Data › Filter Rows and Compute Variables.
  2. Options tab:
    • "Keep rows where": a condition, for example Age >= 50 AND Response = 1 (empty: all rows);
    • "New variables": one variable per line, in the form Name = expression, for example BMI = Weight/Height^2;
    • "Variables to keep (empty = all)": one box per variable; if none is checked, the variables checked in the Data sets tab are kept.
  3. Click OK.

Calculations and rules#

The expressions follow the user equation language (chapter 17): operators + - * / ^, comparisons < > <= >= = <>, AND OR NOT, IF(condition, value if true, value if false) and the usual functions (ln, log, sqrt, exp…). Variables are referred to by their title, case-insensitively, each character that is neither a letter nor a digit being replaced by _ ("Body weight" becomes Body_weight); a title that starts with a digit is preceded by V. Four rules follow:

  • a categorical variable has no numeric value in expressions: Sex = M is refused ("filter: unknown variable 'M'") and Sex = 1 keeps no rows;
  • a comparison with a missing value is false (the row is discarded), except <>;
  • a new variable is computed from the original variables only: Obese = BMI > 30 under the line BMI = … is refused ("Obese: unknown variable 'BMI'"); write Obese = Weight/Height^2 > 30;
  • an undefined value (division by zero) leaves the cell empty.

The kept rows stay in their original order; the kept variables keep their type, and the new ones are continuous.

Reading the results#

The "Filter and compute" tab gives "Rows kept" and "Variables" (the number of variables of the new table), and "Warning" ("No row satisfies the filter") if no row satisfies the filter. The output table ("Selection of" followed by the table name) is a Multivariable table, usable by all the analyses of this type; no graph is created automatically.

Worked example#

Example "Clinical study (continuous, categorical and outcome variables)". With "Keep rows where" = Age >= 50 and "New variables" = BMI = Weight/Height^2: "Rows kept" = 22, "Variables" = 8 (the 7 original variables and BMI). The first patient (70.5 kg, 1.78 m) has BMI = 70.5/1.78² = 22.25. With Age >= 50 AND Response = 1 and only Age, Weight and Height checked in "Variables to keep (empty = all)": "Rows kept" = 11, "Variables" = 4.

Common pitfalls#

  • Filtering on a categorical variable: first recode it as numbers in the table (for example 0 and 1).
  • Defining the subgroup after looking at the results, or trying several.
  • Splitting a continuous variable into classes (IF(Age >= 50, 1, 0)) when the analysis could use the variable itself.

References#

  • Benjamini Y, Hochberg Y. Controlling the false discovery rate: a practical and powerful approach to multiple testing. Journal of the Royal Statistical Society, Series B 1995;57:289-300.
  • Brown LD, Cai TT, DasGupta A. Interval estimation for a binomial proportion. Statistical Science 2001;16:101-133.
  • Grubbs FE. Procedures for detecting outlying observations in samples. Technometrics 1969;11:1-21.
  • Motulsky HJ, Brown RE. Detecting outliers when fitting data with nonlinear regression – a new method based on robust nonlinear regression and the false discovery rate. BMC Bioinformatics 2006;7:123.
  • Motulsky HJ, Christopoulos A. Fitting Models to Biological Data Using Linear and Nonlinear Regression. Oxford University Press, 2004.
  • Motulsky HJ. Intuitive Biostatistics, 4th ed. Oxford University Press, 2018.
  • Vickers AJ, Altman DG. Analysing controlled trials with baseline and follow up measurements. BMJ 2001;323:1123-1124.
  • Zar JH. Biostatistical Analysis, 5th ed. Pearson, 2010.