Tutorials › Population Pharmacokinetics › Standardize Covariate Units and Reference Values

Dataset Construction and Quality Control · Tutorial 44 of 599

Standardize Covariate Units and Reference Values

Learn to harmonize continuous covariate units and reference conventions, verify conversions, and distinguish a genuine extreme value from a scale or formatting error.

Intermediate 10 min read

What You'll Learn

  • Distinguish unit conversion from centering and reference scaling.
  • Convert covariate values using explicit, dimensionally consistent factors.
  • Harmonize laboratory results reported in different units.
  • Detect incompatible formats and investigate suspicious scales without guessing.
  • Document derived values while retaining traceability to source measurements.

Why Covariate Units Need a Consistent Convention

A continuous covariate such as body weight, age, or a laboratory measurement may arrive in more than one unit or format. A recorded value of 70 could mean 70 kg, 70 lb, or a value encoded in a different scale. If those values are treated as though they share one unit, summaries and later model inputs can be misleading. In population pharmacokinetics, a unit mistake can also make a covariate appear implausible or change its numerical scale substantially.

The task is not to make every covariate numerically similar. It is to put measurements of the same quantity into a declared, consistent unit and, when useful, express them relative to a declared reference value. Unit conversion, centering, and reference scaling are distinct operations. Keeping them distinct makes the transformation auditable and helps prevent a convenient numerical convention from being mistaken for a correction to the source data.

Definition: Unit conversion expresses the same measurement in a different unit using a valid conversion factor. Centering subtracts a reference value from a measurement. Reference scaling divides a measurement by a reference value, often producing a dimensionless ratio. These operations do not repair an incorrect source value; they create consistently defined derived values.

Conversion, Centering, and Scaling

Let \(x\) be a measured covariate, with units \(U\). A unit conversion to units \(V\) has the form \(x_V=cx_U\), where \(c\) has units \(V/U\). The numerical factor must correspond to the actual units and quantity being converted. For example, a factor for converting pounds to kilograms is not applicable to a laboratory concentration.

After choosing a common unit, a reference value \(x_{\mathrm{ref}}\) can be used in either of two common ways. The centered value \(x-x_{\mathrm{ref}}\) retains the covariate's units. The ratio \(x/x_{\mathrm{ref}}\) is dimensionless when numerator and denominator refer to the same quantity in the same units. A log-ratio, \(\log(x/x_{\mathrm{ref}})\), is also dimensionless, but it is a different transformation and should only be used when that convention is intended.

$$ x_{\mathrm{centered}}=x-x_{\mathrm{ref}}, \qquad x_{\mathrm{relative}}=\frac{x}{x_{\mathrm{ref}}} $$

A reference value is a declared point of comparison, not automatically the sample mean, a normal value, or a clinical threshold. For example, 70 kg may be selected as a convenient weight reference. The choice should be recorded with the analysis convention and used consistently. If a reference value is expressed in a different unit from the covariate, convert one before subtracting or dividing.

A Short Justification: Transformations Must Preserve Meaning

A consistent change of units does not change the underlying measurement. If a value in unit \(U\) is converted to unit \(V\) using \(x_V=cx_U\), then a reference value must be converted by the same factor. Consequently, the relative value is unchanged:

$$ \frac{x_V}{x_{\mathrm{ref},V}} = \frac{cx_U}{cx_{\mathrm{ref},U}} = \frac{x_U}{x_{\mathrm{ref},U}} $$

This cancellation is why ratios are unit-invariant only when both values have been converted consistently. Mixing a value in pounds with a reference in kilograms does not produce a valid ratio.

Centering also has a precise effect when a quantity is written as a linear expression. If \(\eta=\theta_0+\theta_1x\) and \(x_c=x-x_{\mathrm{ref}}\), substitution gives \(x=x_c+x_{\mathrm{ref}}\), so

$$ \eta = \left(\theta_0+\theta_1x_{\mathrm{ref}}\right)+\theta_1x_c $$

Thus the expression can be represented with the centered covariate if the intercept is adjusted as shown; the slope is unchanged. This is an algebraic identity, not a claim that centering corrects measurement errors or improves every analysis. The reference value and units still need to be stated so that the transformed quantity can be interpreted.

Worked Example: Converting Weight Before Applying a Reference

Suppose a hypothetical dataset contains one subject's weight as 154 lb, while the declared analysis unit is kilograms and the reference weight is 70 kg. Use \(1\text{ lb}=0.45359237\text{ kg}\). Convert the weight, then calculate its centered and relative values.

Convert the measurement.

$$ 154\text{ lb}\times 0.45359237\frac{\text{kg}}{\text{lb}} =69.8532\text{ kg} $$

The pounds cancel, leaving kilograms. To a suitable number of significant figures, the converted weight is 69.85 kg.

Center at 70 kg. The centered value is \(69.8532-70=-0.1468\) kg, or about \(-0.147\) kg. The negative sign means the weight is slightly below the reference.

Calculate the ratio. The relative value is \(69.8532/70=0.9979\), a dimensionless value. It is close to 1 because the converted measurement is close to 70 kg. It would be incorrect to divide the original 154 lb directly by 70 kg: the units would not match.

The conversion is valid because the source unit and the declared conversion factor are known. In an actual data workflow, retain the original 154 lb and record the conversion rule alongside the derived 69.85 kg; do not replace the source value without traceability.

Harmonizing Laboratory Units

Laboratory covariates require particular care because the same analyte may be reported in different units by different laboratories or source files. The unit belongs to the measurement, not merely to the variable name. A column called “creatinine” is not sufficient evidence that every row uses the same unit. Use source metadata, laboratory documentation, or an explicit data dictionary to establish the unit for each record or source segment before conversion.

For serum creatinine, a commonly used conversion is \(1\text{ mg/dL}=88.4\text{ µmol/L}\). This factor is specific to creatinine. It must not be reused for a different analyte simply because that analyte is also measured as a concentration. The converted data should have one declared unit, and quality checks should compare source values with converted values using the recorded source units.

Worked Example: Combining Two Creatinine Unit Conventions

In a hypothetical file, four source records are identified by laboratory metadata as follows: 1.0 mg/dL, 88.4 µmol/L, 1.2 mg/dL, and 106.1 µmol/L. Convert all records to mg/dL using \(1\text{ mg/dL}=88.4\text{ µmol/L}\).

Values already reported in mg/dL remain 1.0 mg/dL and 1.2 mg/dL. For the second record:

$$ 88.4\text{ µmol/L}\times \frac{1\text{ mg/dL}}{88.4\text{ µmol/L}} =1.000\text{ mg/dL} $$

For the fourth record:

$$ 106.1\text{ µmol/L}\times \frac{1\text{ mg/dL}}{88.4\text{ µmol/L}} =1.200\text{ mg/dL}\text{ (approximately)} $$

The harmonized sequence is therefore approximately 1.0, 1.0, 1.2, and 1.2 mg/dL. Agreement between the paired values is a useful check on the arithmetic and on the interpretation of the units. It does not, by itself, prove that every record in a larger dataset has been assigned the correct unit: that assignment must be supported by metadata. If the unit is unknown, do not choose a conversion just because it makes a value look plausible.

Incompatible Formats and Scale Checks

Sometimes records express the same covariate using different formats rather than a clearly labelled unit column. Height might appear as “1.72 m,” “172 cm,” or “68 in.” A numeric field may also have been imported as text, or decimal punctuation may differ by locale. These cases require two separate questions: what quantity and unit does the source represent, and how should it be parsed without losing its original representation?

Use known format rules and source documentation to interpret the value; do not infer units from the number alone. In particular, an unexplained factor of 10, 100, or 1,000 is a reason to investigate scale, prefixes, and decimal conventions, not permission to multiply or divide until the values look typical. A plausibility screen can identify records for review, but it cannot establish the correct unit.

Worked Example: Reconciling Height Formats

A hypothetical source contains three documented height entries: “1.72 m,” “172 cm,” and “68 in.” Choose metres as the common unit. Use \(1\text{ m}=100\text{ cm}\) and \(1\text{ in}=2.54\text{ cm}\). A reference height of 1.70 m will be used to calculate ratios.

The first value is already 1.72 m. For the second, \(172\text{ cm}/100=1.72\text{ m}\). For the third:

$$ 68\text{ in}\times 2.54\frac{\text{cm}}{\text{in}}\times \frac{1\text{ m}}{100\text{ cm}} =1.7272\text{ m} $$

The three values in metres are 1.72, 1.72, and 1.7272. Their ratios to the 1.70 m reference are \(1.72/1.70=1.012\), \(1.72/1.70=1.012\), and \(1.7272/1.70=1.016\), respectively, to four significant figures. The entries are close but not identical: 68 inches converts to 172.72 cm, not exactly 172 cm. Rounding or source measurement precision may account for small differences; they should not be silently erased by forcing the values to match.

If an entry instead appeared as “1,72” without documentation, its meaning would depend on the source's decimal convention. It might represent 1.72, or the comma could have another formatting role. Preserve the raw text, check the source convention, and record the parsing rule before creating a numeric derived value.

Practical Quality-Control Sequence

A reliable workflow separates evidence, transformation, and review. The following sequence is useful for continuous covariates whether the final convention is a common unit alone or a common unit plus a reference value.

1
Identify the source convention.
For each source or record, establish the variable, unit, precision, and any relevant formatting rule from documentation. Mark unresolved cases for investigation rather than guessing.
2
Declare the target convention.
Specify one unit for the covariate and, if needed, a reference value in that same unit. State whether the derived covariate is centered, expressed as a ratio, or transformed another way.
3
Convert and verify.
Apply a dimensionally valid conversion factor. Check several calculations independently, and compare converted values with the original values, units, and source context.
4
Keep the transformation traceable.
Retain the source value and unit, store or document the conversion rule, and identify the derived value and its target unit. Record how parsing or rounding was handled.

Useful diagnostics include counts by source unit, minimum and maximum values before and after conversion, and summaries stratified by laboratory or file. A sudden shift in range at a source boundary can indicate mixed units or a changed encoding. Also check whether conversion changed the ordering of values: a positive conversion factor should preserve it. If a positive measurement becomes negative, or if an expected unit conversion produces an implausible magnitude, review the factor, parsing, and source assignment.

These checks flag inconsistencies; they do not identify their cause automatically. An extreme value may be genuine, as established in the earlier material on distinguishing data errors from genuine extreme concentrations. For covariates as well, do not delete or alter a value solely because it is unusual. Investigate it against the source record and document any correction under the established data-correction process.

Choosing a Reference and Avoiding Common Errors

A reference value should be selected for a clear, stable purpose. It may be a clinically familiar value, a convenient round value, or a value chosen to make a transformed covariate easy to interpret. Whatever the reason, it must be stated with units. A reference value does not change the raw measurement, and it does not make different source units interchangeable. First harmonize units; then apply the reference convention.

The main alternatives serve different purposes. Keeping the covariate in its common physical unit preserves direct interpretation, such as kilograms or years. Centering expresses distance from a reference in the original unit. Dividing by a reference gives a dimensionless ratio and can make the comparison to that reference explicit. These are not interchangeable labels: for instance, a centered value of 10 kg and a ratio of 1.10 encode different numerical quantities.

A common mistake is to treat an unexpectedly large or small number as proof of a unit error and rescale it without checking the source. The correction is to verify the unit and encoding from documentation, apply only a justified conversion factor, and keep the original measurement available. Another mistake is to convert the covariate but not the reference value, producing an invalid centered difference or ratio. Convert both to the same unit before applying the reference operation.

Key takeaway: A defensible derived covariate has a defined quantity, a verified source unit, an explicit target unit, and—if used—a reference value in that target unit. Preserve enough information to reproduce the transformation and investigate any suspicious result.

Check Your Understanding

Answer each question using the stated units and conventions.

  1. A weight is recorded as 176.4 lb. Using \(1\text{ lb}=0.45359237\text{ kg}\), convert it to kilograms and calculate its ratio to a 70 kg reference.
  2. Explain why a value in µmol/L cannot be divided directly by a reference value in mg/dL to obtain a valid relative value.
  3. A covariate is recorded as 52 years and has a reference value of 40 years. Give its centered value and ratio to the reference, with units where applicable.
  4. A laboratory file contains values roughly 100 times larger than another file, but its unit metadata are missing. What should be done before harmonizing the files?
  5. What information should be retained to make a unit conversion traceable?

Solutions. (1) \(176.4\times0.45359237=80.014\) kg, or 80.01 kg; the ratio is \(80.014/70=1.143\), dimensionless. (2) The numerator and denominator use different units, so their quotient is not a valid same-quantity ratio until one is converted using a justified factor. (3) The centered value is \(52-40=12\) years; the ratio is \(52/40=1.30\), dimensionless. (4) Investigate source documentation or obtain clarification; a suspicious scale is a flag, not evidence for a specific conversion. Do not guess a factor. (5) Retain the original value and unit, the source or unit assignment, the conversion factor and rule, and the derived value with its target unit; document relevant parsing and rounding decisions.

Clinical Biostats