Learn R Programming

refund (version 0.1-40)

build_mgcv_formula: Build the final mgcv formula from transformed terms

Description

Build the final mgcv formula from transformed terms

Usage

build_mgcv_formula(
  response_name,
  intercept_string,
  term_strings,
  has_intercept,
  formula_env
)

Value

Formula object for mgcv.

Arguments

response_name

Response variable name (symbol or character).

intercept_string

Intercept term string (or NULL if no intercept).

term_strings

Character vector of transformed term strings.

has_intercept

Logical, whether model has intercept.

formula_env

Environment for formula.