nsca_results: All three NSCA result layers

View source: R/results.R

nsca_resultsR Documentation

All three NSCA result layers

Description

Returns the necessity analysis, the sufficiency analysis, and their joint necessary-and-sufficient analysis as three explicit tables. The third does not represent an independent third experiment: its p_nsca_iut is the conjunction max(p_nec, p_suf) and can pass only when both component screens pass.

Usage

nsca_results(model)

## S3 method for class 'nsca_result'
print(x, ...)

## S3 method for class 'nsca_result'
summary(object, ...)

## S3 method for class 'summary_nsca_result'
print(x, ...)

Arguments

model

An object returned by nsca_analysis().

x

An object returned by nsca_analysis(), for the print method.

...

Additional arguments reserved for methods.

object

An object returned by nsca_analysis().

Value

A named list containing necessity, sufficiency, and necessary_and_sufficient data frames. The methods print, or return a summary object.

See Also

nsca_table()

Examples

set.seed(1)
x <- sort(runif(60))
dat <- data.frame(X = x, Y = pmin(pmax(x + rnorm(60, 0, 0.1), 0), 1))
fit <- nsca_analysis(dat, "X", "Y", ceilings = "ce_fdh")
layers <- nsca_results(fit)
names(layers)
fit
summary(fit)

NSCA documentation built on Oct. 10, 2026, 5:08 p.m.