nsca_extract: Extract one value from an NSCA result

View source: R/results.R

nsca_extractR Documentation

Extract one value from an NSCA result

Description

Extract one value from an NSCA result

Usage

nsca_extract(model, x = NULL, ceiling = NULL, param = "weakest_effect")

Arguments

model

An object returned by nsca_analysis().

x

Condition name. Defaults to the first condition.

ceiling

Frontier technique. Defaults to the first requested.

param

A column of nsca_table(), one of the retired names in nsca_legacy_names(), or a parameter name understood by the underlying engines, prefixed with "nec:" or "suf:".

Value

The selected value.

See Also

nsca_table(), nsca_legacy_names()

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")
nsca_extract(fit, param = "weakest_effect")
nsca_extract(fit, param = "nec:Ceiling accuracy")

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