Learn R Programming

NCA (version 5.0.0)

Necessary Condition Analysis

Description

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) . 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). A quick start guide for using this package can be found here: or .

Copy Link

Version

Install

install.packages('NCA')

Monthly Downloads

1,744

Version

5.0.0

License

GPL (>= 3)

Maintainer

Govert Buijs

Last Published

March 20th, 2026

Functions in NCA (5.0.0)

point.type

parameter defining the plotting symbol in the plots
nca.example

NCA example data with 2 conditions and 1 output
nca.example2

NCA example data with 3 conditions and 1 outcome
ceilings

a set of all available ceiling techniques
nca_difference

Function for permutation tests
line.colors

a set defining the line colors for the plots
NCA-package

Necessary Condition Analysis
line.width

parameter defining the width of the lines in the plots
nca

Run a basic NCA analyses on a data set
line.types

a set defining the line types for the plots
nca_analysis

Run NCA analyses on a data set
nca_output

display the result of the NCA analysis
nca_outliers

Outlier detection
nca_power

Function to evaluate power
nca_extract

get model parameters
point.color

parameter defining the point color in the plots
nca_powerplot

Function to show the powerplot
nca_util_normalize

Normalizes numeric data
nca_random

generating random data that meets necessity