A slightly modified copy of [pspline.setting](https://rdrr.io/cran/refund/src/R/pspline.setting.R) from `refund`. Copied here because the original function is not exported from the package.
pspline_setting(
x,
knots = select_knots(x, 35),
p = 3,
m = 2,
periodicity = FALSE,
weight = NULL
)
Marginal data points
The list of interior knots of the numbers of interior knots
Degrees for B-splines, default = 3
Orders of difference penalty, default = 2
Boolean
optional argument