fit_idiographic: Fit an idiographic model through the unified interface

View source: R/registry.R

fit_idiographicR Documentation

Fit an idiographic model through the unified interface

Description

fit_idiographic() dispatches every built-in estimator and workflow through the same entry point. Arguments may be supplied directly or in params, which makes a stored configuration directly replayable. Direct arguments and params must both be named and cannot overlap; this turns otherwise ambiguous duplicate arguments into an immediate, informative error.

Usage

fit_idiographic(data, method, ..., params = list())

Arguments

data

A data frame or matrix passed to the selected method.

method

A registered method name or alias.

...

Named arguments passed directly to the selected method.

params

A named list of additional method arguments.

Value

The selected method's result, unchanged except for lightweight dispatch and equivalence metadata attributes.

Examples

set.seed(1)
d <- data.frame(A = rnorm(80), B = rnorm(80))
fit <- fit_idiographic(d, "var", vars = c("A", "B"), scale = FALSE)
fit2 <- fit_idiographic(d, "ols-var",
                        params = list(vars = c("A", "B"), scale = FALSE))
equivalence(fit)

idiographic documentation built on Aug. 4, 2026, 1:07 a.m.