View source: R/traitUtilities.r
args4smoothing | R Documentation |
list
of the values for the smoothing parameters to be passed to a smoothing functionCreates a list
of the values for the smoothing parameters to be
passed to a smoothing function. Note that smoothing.methods
,
spline.types
, df
and lambdas
are combined to define the
set of smooths. The default settings are optimized for traitSmooth
so that,
if you want to change any of these from their default settings when using args4smoothing
with a function
other than traitSmooth
, then it is recommended that you specify all of them to ensure that the complete set
has been correctly specified. Otherwise, the default settings will be those shown here and these may be different to the
default settings shown for the function with which you are using args4smoothing
.
args4smoothing(smoothing.methods = "logarithmic",
spline.types = c("NCSS","PS"),
df = 5:7,
lambdas = list(PS = round(10^c(-0.5, 0, 0.5, 1),
digits = 3)),
smoothing.segments = NULL,
npspline.segments = NULL,
na.x.action="exclude", na.y.action = "trimx",
external.smooths = NULL,
correctBoundaries = FALSE,
combinations = "allvalid",
...)
smoothing.methods |
A |
spline.types |
A |
df |
A |
lambdas |
A named |
smoothing.segments |
A named |
npspline.segments |
A |
na.x.action |
A |
na.y.action |
A |
external.smooths |
A The growth rates will be computed by differencing according to the settings of
|
correctBoundaries |
A |
combinations |
A The option The option |
... |
allows arguments to be passed to other functions; not used at present. |
A named list
.
Chris Brien
traitSmooth
and probeSmooths
.
args4smoothing(smoothing.methods = "direct",
spline.types = "NCSS", df = NULL, lambdas = NULL,
smoothing.segments = NULL, npspline.segments = NULL,
combinations = "allvalid")
args4smoothing(smoothing.methods = c("log","dir","log"),
spline.types = c("NCSS","NCSS","PS"),
df = c(4,5,NA), lambdas = c(NA,NA,0.36),
combinations = "parallel")
args4smoothing(smoothing.methods = "log",
spline.types = "PS", df = NULL,
lambdas = 0.36, combinations = "single")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.