Internal function for creating names for Smooth design matrix
create_smooth_name(smth)
the Smooth object, created from smoothCon of mgcv
a vector of string, containing the column names of the spline design matrix
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)
#> [1] "x.pen1" "x.pen2" "x.pen3" "x.pen4" "x.pen5" "x.pen6" "x.pen7"
#> [8] "x.pen8" "x.null1"