Package: SCAtools
Type: Package
Title: Direction-Aware Sufficient Condition Analysis
Version: 0.5.1
Date: 2026-10-12
Authors@R: c(
    person("Young", "Chan", email = "youngchanresearcher@gmail.com",
           role = c("aut", "cre"))
    )
Description: Tests whether a high or low level of a condition is enough to
    guarantee a high or low level of an outcome. Such a claim predicts that one
    corner of the condition-outcome scatter plot is empty of observations. The
    package estimates the boundary of that empty corner, its size as a share of
    the scope (the effect size), a permutation test against random pairing, and
    a threshold table giving the condition level that guarantees each outcome
    level, in actual units, percentages, percentiles or standard deviations.
    Each of the four directions (high or low condition, high or low outcome) is
    stated as a claim and mapped to its empty corner. Because a condition can
    rule out low outcomes while barely moving the average, results can be set
    beside ordinary least-squares and median regression slopes, showing whether
    the data hold an average effect, a sufficiency effect or both. Also
    provides plots, influential-case diagnostics, scope-sensitivity and
    resampling checks, random-data generation and power analysis for planning
    studies. Frontiers are estimated with the 'NCA' package.
License: GPL (>= 3)
Encoding: UTF-8
Depends: R (>= 3.5.0)
Imports: ggplot2 (>= 3.4.0), NCA (>= 5.0.2), quantreg, stats, utils
Suggests: testthat (>= 3.0.0)
Config/testthat/edition: 3
LazyData: true
URL: https://github.com/youngchanresearcher/SCAtools
BugReports: https://github.com/youngchanresearcher/SCAtools/issues
NeedsCompilation: no
Config/roxygen2/version: 8.1.1
Packaged: 2026-10-13 10:13:04 UTC; root
Author: Young Chan [aut, cre]
Maintainer: Young Chan <youngchanresearcher@gmail.com>
Repository: CRAN
Date/Publication: 2026-10-13 14:20:02 UTC
Built: R 4.6.1; ; 2026-10-13 15:47:14 UTC; unix
