小编use*_*001的帖子

如何为smooth.spline()选择平滑参数?

我知道平滑参数(lambda)对于拟合平滑样条非常重要,但是我没有看到关于如何选择合理的lambda(spar =?)的任何帖子,我被告知spar通常在0到1之间有没有人可以在使用smooth.spline()时分享你的经验?谢谢.

    smooth.spline(x, y = NULL, w = NULL, df, spar = NULL,
          cv = FALSE, all.knots = FALSE, nknots = NULL,
          keep.data = TRUE, df.offset = 0, penalty = 1,
          control.spar = list(), tol = 1e-6 * IQR(x))
Run Code Online (Sandbox Code Playgroud)

lambda r smooth spline smoothing

7
推荐指数
2
解决办法
1万
查看次数

标签 统计

lambda ×1

r ×1

smooth ×1

smoothing ×1

spline ×1