Learn R Programming

refund (version 0.1-40)

parse_pffr_model_formula: Parse a pffr model formula and classify terms

Description

Internal function for pffr() model fitting. Different from the simulation formula parser used by pffrSim.

Usage

parse_pffr_model_formula(formula, data = NULL, ydata = NULL)

Value

A list with: - `tf`: The terms object - `term_strings`: Character vector of term labels - `terms`: Named list of parsed term calls - `frml_env`: Formula environment - `where_specials`: Named list of term indices by type - `response_name`: Response variable name - `has_intercept`: Logical, whether formula has intercept

Arguments

formula

The pffr formula.

data

The data list/frame (unused, for API consistency).

ydata

Optional sparse/irregular response data (unused).