Learn R Programming

panelr (version 1.0.0)

evaluate_basis_term: Evaluate a basis function on pooled data and extract attributes

Description

Evaluate a basis function on pooled data and extract attributes

Usage

evaluate_basis_term(term, data)

Value

List with components:

  • result: The evaluated matrix

  • attrs: Named list of reproducible attributes

  • ncol: Number of columns

  • fn_name: The function name

  • var_name: The primary variable name

Arguments

term

Character string like "ns(age, df=3)"

data

Ungrouped data frame