Package: NSCA
Type: Package
Title: Necessary and Sufficient Condition Analysis
Version: 0.5.2
Date: 2026-10-26
Authors@R: c(
    person("Young", "Chan", email = "youngchanresearcher@gmail.com",
           role = c("aut", "cre"))
    )
Description: Tests whether a condition is both necessary and sufficient for an
    outcome, that is, whether the outcome cannot be reached without the
    condition and is guaranteed in its presence. Such a claim implies that two
    diagonally opposite corners of the condition-outcome scatter plot contain
    no observations. The package estimates both boundaries with the same data,
    scope and frontier technique, reports the effect size and permutation test
    of each, and indicates joint support only when both components are
    supported. The two components are summarized by the weaker effect, a
    balanced combination and the proportion of the scope that the two claims
    jointly rule out. A dual-threshold table gives, for each outcome level, the
    condition level it requires, the level sufficient for it, and the interval
    between them. Results can be compared with regression slopes. The package
    also provides plots, influential-case diagnostics, scope-sensitivity and
    resampling checks, and simulation and power analysis for planning studies.
    The two sides are estimated with the 'NCA' and 'SCAtools' packages.
License: GPL (>= 3)
Encoding: UTF-8
Depends: R (>= 3.5.0)
Imports: ggplot2 (>= 3.4.0), NCA (>= 5.0.2), SCAtools (>= 0.5.2),
        stats, utils
Suggests: testthat (>= 3.0.0)
Config/testthat/edition: 3
URL: https://github.com/youngchanresearcher/NSCA
BugReports: https://github.com/youngchanresearcher/NSCA/issues
NeedsCompilation: no
Config/roxygen2/version: 8.1.1
Packaged: 2026-10-26 18:53:37 UTC; root
Author: Young Chan [aut, cre]
Maintainer: Young Chan <youngchanresearcher@gmail.com>
Repository: CRAN
Date/Publication: 2026-10-26 19:40:02 UTC
Built: R 4.5.2; ; 2026-10-26 20:37:41 UTC; unix
