create_smooth_name: Create Smooth Design Matrix Column Names *[Experimental]*

View source: R/helper-functions.R

create_smooth_nameR Documentation

Create Smooth Design Matrix Column Names [Experimental]

Description

Internal function for creating names for Smooth design matrix

Usage

create_smooth_name(smth)

Arguments

smth

the Smooth object, created from smoothCon of mgcv

Value

a vector of string, containing the column names of the spline design matrix

Examples

 smth <- (
  mgcv::smoothCon(object = mgcv::s(x), data = data.frame(x = rnorm(100)),
            scale.penalty = TRUE,
            absorb.cons = TRUE,
            null.space.penalty = TRUE,
            diagonal.penalty = TRUE)
)[[1]]

BHAM:::create_smooth_name(smth)

boyiguo1/BHAM documentation built on Jan. 29, 2024, 10:37 a.m.