Learn R Programming

refund (version 0.1-40)

transform_smooth_term: Transform smooth terms (s, te, ti, t2) to include y-index

Description

Converts univariate/bivariate smooth terms into tensor products that include the functional response index.

Usage

transform_smooth_term(term, yind_vec_name, bs_yindex, tensortype, algorithm)

Value

Transformed term string.

Arguments

term

The term call object.

yind_vec_name

Name of y-index vector (character).

bs_yindex

Default basis spec for y-index (named list).

tensortype

Type of tensor product (symbol: ti or t2).

algorithm

Fitting algorithm name (character or symbol).