Skip to content

Main content

Pairwise Complete Count Tool

Count jointly observed rows for one supplied variable pair without imputing missing values.

Loading tool…

Description

Count jointly observed rows for one supplied variable pair without imputing missing values.

A statistical term depends on its data summaries, weighting convention, centering, denominator, and boundary rules. A contribution, derivative, domain check, or converted summary answers a narrower question than a complete estimator. Those conventions must match before terms are combined or compared.

Count jointly observed rows for one supplied variable pair without imputing missing values.

When to use this tool

Use Pairwise Complete Count when you need this specific summary conversion, contribution, domain rule, or sensitivity term with matching statistical conventions.

How to use the tool and how it works

  1. Enter firstObserved, secondObserved. Keep parallel arrays aligned. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read jointlyObserved. Use the output convention below.

Count aligned positions where firstObserved and secondObserved are both true.1

Input fieldMeaning and unitsAccepted input
firstObservedFirst ObservedRequired. Array of boolean; maximum items 256.
secondObservedSecond ObservedRequired. Array of boolean; maximum items 256.
Output fieldInterpretationReturned shape
jointlyObservedJointly ObservedRequired. Safe integer.
json
{
  "input": {
    "firstObserved": [
      true,
      true,
      false
    ],
    "secondObserved": [
      true,
      false,
      true
    ]
  },
  "output": {
    "jointlyObserved": 1
  }
}

Limitations and assumptions

  • The flags are supplied missingness annotations, not actual data validation. Pairwise completeness does not establish an unbiased sample or a common denominator across a larger correlation matrix.
  • The field tables state structural bounds; the mechanics also specify cross-field constraints. Malformed inputs and unsupported domains cause errors. A successful false flag, empty branch value, or zero placeholder has the meaning stated above and is distinct from an input error.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Signed zero is exported as zero.

Alternative or Complementary methods

Use a complete estimator or model when a contribution, sensitivity, or domain check is insufficient. Verify the weight semantics, centering, denominator, and sampling assumptions before combining summaries.

References

  1. Calculation and input contract: statistics/pairwise-complete-count — tool.io

Similar or alternative tools