NCA: Necessary Condition Analysis

Performs a Necessary Condition Analysis (NCA). (Dul, J. 2016. Necessary Condition Analysis (NCA). ”Logic and Methodology of 'Necessary but not Sufficient' causality." Organizational Research Methods 19(1), 10-52) <doi:10.1177/1094428115584005>. NCA identifies necessary (but not sufficient) conditions in datasets, where x causes (e.g. precedes) y. Instead of drawing a regression line ”through the middle of the data” in an xy-plot, NCA draws the ceiling line. The ceiling line y = f(x) separates the area with observations from the area without observations. (Nearly) all observations are below the ceiling line: y <= f(x). The empty zone is in the upper left hand corner of the xy-plot (with the convention that the x-axis is ”horizontal” and the y-axis is ”vertical” and that values increase ”upwards” and ”to the right”). The ceiling line is a (piecewise) linear non-decreasing line: a linear step function or a straight line. It indicates which level of x (e.g., an effort, a characteristic) is necessary but not sufficient for a (desired or undesired) level of y (e.g., good performance or disease). The method and the use of this package are described in the book Dul, J. (2027) 'Necessary Condition Analysis (NCA): Principles and Application', Chapman & Hall/CRC Press, with a free online version at <https://jandul.github.io/nca-book/>. The Quick Start Guide NCA with R and other materials are available on the NCA landing page <https://jandul.github.io/NCA/>. The package includes two example datasets (nca.example and nca.example2).

Version: 5.1.0
Depends: R (≥ 3.5.0)
Imports: gplots, quantreg, KernSmooth, lpSolve, ggplot2, doParallel, foreach, iterators, plotly, truncnorm, DBI, RSQLite
Suggests: testthat
Published: 2026-11-18
DOI: 10.32614/CRAN.package.NCA
Author: Jan Dul [aut], Govert Buijs [cre]
Maintainer: Govert Buijs <buijs at rsm.nl>
License: GPL (≥ 3)
URL: https://jandul.github.io/NCA/, https://jandul.github.io/nca-book/, https://www.eur.nl/en/erim/erim/research-initiatives/necessary-condition-analysis
NeedsCompilation: no
Materials: NEWS
CRAN checks: NCA results

Documentation:

Reference manual: NCA.html , NCA.pdf

Downloads:

Package source: NCA_5.1.0.tar.gz
Windows binaries: r-devel: NCA_5.1.0.zip, r-release: NCA_5.0.2.zip, r-oldrel: NCA_5.0.2.zip
macOS binaries: r-release (arm64): NCA_5.1.0.tgz, r-oldrel (arm64): NCA_5.1.0.tgz, r-release (x86_64): NCA_5.1.0.tgz, r-oldrel (x86_64): NCA_5.1.0.tgz
Old sources: NCA archive

Reverse dependencies:

Reverse imports: NSCA, SCAtools

Linking:

Please use the canonical form https://CRAN.R-project.org/package=NCA to link to this page.