| shapeselect_control | R Documentation |
shapeselect()Creates a list of parameters used by shapeselect() to control
basis construction, information-criterion calibration, simulation settings,
parallel computing etc.
shapeselect_control(
knots_lst = NULL,
boundary.knots = NULL,
space = "E",
nsim = 200,
nfolds = 5,
eps = 1e-08,
pnt = TRUE,
multicore = getOption("cgam.parallel"),
a = NULL,
maxedf = FALSE,
add_edfu = 0,
add_kts = NULL,
shrinketa = FALSE,
catnrep = FALSE,
standardize = TRUE,
center = TRUE,
verbose = FALSE,
set4 = TRUE
)
knots_lst |
Optional list specifying knots for spline basis functions,
one element per predictor. Use |
boundary.knots |
Optional list specifiying knots for numeric predictors. |
space |
Character string indicating the knots being equally spaced for spline
bases in underlying fitting routines (e.g., |
nsim |
Integer; number of simulations used when estimating mean degrees of freedom terms used in variable and shape selection criteria CBIC. |
nfolds |
Integer; number of folds used for cross-validation when
|
eps |
Numeric tolerance used for detecting near-zero signal. |
pnt |
Logical; whether to use penalized spline estimator. |
multicore |
Logical/integer; parallel setting passed to |
a |
Optional numeric; calibration constant used in the modified CBIC penalty term.
If |
maxedf |
Logical; if |
add_edfu |
Numeric; optional additive adjustment to the unconstrained EDF used in the information criterion calculations. |
add_kts |
Integer; optional adjustment to the number of knots used in spline bases.
If |
shrinketa |
Logical; if |
catnrep |
Logical; if |
standardize |
Logical; if |
center |
Logical; if |
verbose |
Logical; if |
set4 |
Logical; optional flag passed through to internal routines used to restrict or modify the candidate shape set to be increasing, decreasing, convex and concave; if false, then combinations of monotonicity and convexity will be added |
A named list suitable for the control argument of shapeselect().
ctrl <- shapeselect_control(nsim = 100, nfolds = 10, verbose = TRUE)
ctrl
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.