transform_model: Transform and untransform category means and covariance...

transform_modelR Documentation

Transform and untransform category means and covariance matrices of a model

Description

Applies the transformation specified in transform object (e.g., centering, scaling, PCA) to the category mean(s) and/or covariance(s) in the model.

Usage

transform_model(model, transform)

untransform_model(model, transform)

transform_category_mean(m, transform)

untransform_category_mean(m, transform)

transform_category_cov(S, transform)

untransform_category_cov(S, transform)

Arguments

model

A model with columns that specify category means (mu or m) and covariance information (Sigma or S).

transform

A transform or transform parameter object of the type returned by transform_cues.

m

A single category mean or alike.

S

A single covariance matrix or alike.

Details

Note that (un)transform_category_cov can also be used for centered sums-of-squares matrices, but not for uncentered sums-of-squares matrices. The latter require additional adjustments that might be implemented in the future (see https://chatgpt.com/c/683b3ed6-4924-800c-8f22-e61680f3360f).

Value

A model, category mean, or covariance matrix of the same type as the input.


hlplab/MVBeliefUpdatr documentation built on July 5, 2025, 6:42 a.m.