| process_matrix_term | R Documentation |
This is the main entry point for handling basis functions in formulas. It evaluates the term on pooled data, extracts attributes, and creates both within and between versions of the term.
process_matrix_term(term, data)
term |
Character string like "ns(age, df=3)" |
data |
panel_data frame |
List with:
data: Updated data frame with expanded columns
within_cols: Character vector of within column names
between_cols: Character vector of between column names
var_name: Original variable name
fn_name: Function name
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.