Skip to contents

ledgr_effective_trials() clusters retained completed-candidate return series with one deterministic hierarchical method. The effective independent trial count is the number of clusters at distance_threshold; it is evidence for selection-integrity diagnostics, not a selection rule.

Usage

ledgr_effective_trials(x, candidates = NULL, distance_threshold = 0.5)

Arguments

x

A ledgr_return_panel object or a ledgr_sweep_results object with retained completed returns.

candidates

Optional character vector of candidate ids to include.

distance_threshold

Numeric scalar in [0, 2]. Distances are 1 - correlation over retained return columns.

Value

A ledgr_effective_trials object with summary, membership, distances, and metadata.

See also

vignette("selection-integrity", package = "ledgr") or system.file("doc", "selection-integrity.html", package = "ledgr").

Examples

if (FALSE) { # \dontrun{
clusters <- ledgr_effective_trials(sweep)
as_tibble(clusters)
as_tibble(clusters, what = "membership")
} # }