This is a simple wrapper function to define special smooth terms in BAMLSS formulae. The function calls the smooth term constructor function s. The return value of s is only slightly modified, such that function bamlss.frame identifies this term as a special term and uses the appropriate (internal) infrastructures.

This structure is useful when the model term structure is, e.g., not a linear combination of a design matrix and coefficients. See the example section of function bfit on how to use this setup.

s2(...)

Arguments

...

Arguments passed to function s.

Value

Slightly modified return value of function s.

Examples

print(names(s(x)))
#>  [1] "term"    "bs.dim"  "fixed"   "dim"     "p.order" "by"      "label"  
#>  [8] "xt"      "id"      "sp"     
print(names(s2(x)))
#>  [1] "term"    "bs.dim"  "fixed"   "dim"     "p.order" "by"      "label"  
#>  [8] "xt"      "id"      "sp"      "special"