User-facing wrapper that dispatches to the appropriate std_using_*()
method for an npsych_scores object. When method and version are
omitted, the registered defaults (see set_std_defaults()) are used.
Arguments
- scores
An
npsych_scoresobject, such asMOCATOTS(c(25, 28)).- ...
Named covariates passed through to the underlying
std_using_*()method (e.g.,age,sex,educ).- method
A single string naming the standardization method (e.g.,
"norms","regression"). WhenNULL(the default), the default method registered viaset_std_defaults()is used.- version
A single string identifying the version of the method (e.g.,
"nacc","updated_2025.06"). WhenNULL(the default), the default version registered viaset_std_defaults()is used. Ignored when the resolved method does not use versioned data.
Value
An std_npsych_scores object (inherits numeric). Access
standardization metadata via S7 properties:
@methodThe standardization method used (e.g.,
"norms","regression").@versionThe version identifier (e.g.,
"nacc","updated_2025.06"), orNULLif the method is unversioned.@descriptionA human-readable summary of the standardization applied, including covariates.
@scores_subclassThe name of the originating
npsych_scoressubclass (e.g.,"MOCATOTS").
See also
std_data() for batch-standardizing every npsych_scores
column in a data frame, list_std_methods(), list_method_versions(),
get_std_defaults(), set_std_defaults().