1

嗨,我在这里寻找一些澄清。

上下文:我想在散点图中画一条不显示参数的线,因此我在 ggplot 中使用 geom_smooth()。它会自动返回geom_smooth: method="auto" and size of largest group is >=1000, so using gam with formula: y ~ s(x, bs = "cs"). Use 'method = x' to change the smoothing method.我收集 gam 代表广义加法模型,并使用三次样条。

以下认识是否正确?

-Loess 估计特定值的响应。

-样条是连接适合数据的不同分段函数的近似值(构成广义加法模型),三次样条是此处使用的特定类型的样条。

最后,什么时候应该使用样条,什么时候应该使用黄土?

4

0 回答 0