backscale_matrix: Backscale Columns of a Matrix (Internal)

View source: R/fit_mfp.R

backscale_matrixR Documentation

Backscale Columns of a Matrix (Internal)

Description

Multiplies each column of a numeric matrix by a corresponding scalar value from a named vector. Typically used to reverse prior scaling (i.e., backscaling). This is an internal helper function and not intended for direct use by package users.

Usage

backscale_matrix(x, scalex)

Arguments

x

A numeric matrix with column names, or NULL.

scalex

A named numeric vector. Each name must match a column name of x.

Value

A matrix with backscaled columns, or NULL if x is NULL.


mfp2 documentation built on June 8, 2025, 11:04 a.m.