Internal helper that performs input validation, formula parsing and transformation, construction of the mgcv data object, and assembly of the mgcv call. The returned list contains everything required to fit and post-process a pffr model.
pffr_prepare(
call,
formula,
yind,
yind_missing,
yind_expr,
data,
ydata,
algorithm,
method,
tensortype,
bs_yindex,
bs_int,
sandwich,
dots
)A list with preparation outputs, including `new_call` and `pffr_data`.
The matched call from pffr().
The original pffr formula.
The y-index argument (may be `NULL` if missing).
Logical, whether `yind` was missing in the original call.
The yind expression from the original call (for naming).
The data argument (list/data.frame).
Sparse response data (or `NULL`).
User-specified algorithm (may be NA).
The requested mgcv method (character).
Tensor product type (symbol).
Basis specification for y-index.
Basis specification for functional intercept.
Character sandwich type (`"none"`, `"cluster"`, `"cl2"`, or `"hc"`).
The list of additional arguments (...).