reconstruct_basis_call: Reconstruct a basis function call with a modified variable

View source: R/basis_utils.R

reconstruct_basis_callR Documentation

Reconstruct a basis function call with a modified variable

Description

Reconstruct a basis function call with a modified variable

Usage

reconstruct_basis_call(term, new_var, attrs = NULL)

Arguments

term

Original term like "ns(age, df=3)"

new_var

New variable expression like "age - imean(age)"

attrs

Optional list of attributes to add as arguments

Value

Character string of the new call


panelr documentation built on Jan. 21, 2026, 9:06 a.m.