Tuning Parameters for Adaptive Splines Surface Models

splines_degree(range = c(0L, 5L), trans = NULL)

max_degree(range = c(0L, 5L), trans = NULL)

max_categorical_degree(range = c(0L, 5L), trans = NULL)

min_basis_points(range = c(0L, 1000L), trans = NULL)

Arguments

range

A two-element vector holding the defaults for the smallest and largest possible values, respectively.

trans

A trans object from the scales package, such as scales::log10_trans() or scales::reciprocal_trans(). If not provided, the default is used which matches the units used in range. If no transformation, NULL.

Value

A parameter

A parameter

A parameter

A parameter

Details

The main parameters for Adaptive Splines Surface models are:

  • splines_degree: degree of splines. Stability should be examined for anything other than 1.

  • max_degree: integer for maximum degree of interaction in spline basis functions.

  • max_categorical_degree: (categorical input only) integer for maximum degree of interaction of categorical inputs.

  • min_basis_points: minimum number of non-zero points in a basis function

Examples

splines_degree()
#> Degree of splines (quantitative) #> Range: [0, 5]
max_degree()
#> Maximum degree of interaction in spline basis functions (quantitative) #> Range: [0, 5]
min_basis_points()
#> Minimum number of non-zero points in a basis function (quantitative) #> Range: [0, 1000]