Loess 拟合和所得方程
我是俄勒冈州波特兰市的一名开发商。我想知道是否有人可以提供帮助:
我正在使用 R 制作 Loess 拟合模型,一旦我拟合好了 完成后,我正在寻找反演方程 拟合非线性曲线,想知道是否有办法 在 R 中确定这个方程?我一直在寻找但找不到 任何文学作品。对我来说,函数图很棒,但是 没有图表的方程,我就有点死在水里了。
I'm a developer up in Portland, OR. I'm wondering if anyone can assist:
I'm working on Loess fit models using R, once I have the fit
accomplished, I'm looking to back-out the equation of the
fitted non-linear curve, wondering if there is a way to
determine this equation in R? I've been looking but can't find
any literature. For me, the graph of the function is great, but
without the equation of the graph, I'm kinda dead in the water.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
没有公式。 Loess 是一种非参数方法。它不能用简单的方程来表达。
There is no formula. Loess is a nonparametric method. It can't be expressed as a simple equation.
您无法从 LOESS 本身中提取公式。但是,您可以简单地对 LOESS 找到的点运行另一种方法。如果它是一个简单的二维图,那么找到一个好的公式应该不难。实现此目的的一种方法是符号回归(请参阅 wiki)。
请注意,这可能不是最佳方法,最好使用除 LOESS 之外的其他方法。
You cannot extract the formula from LOESS itself. However, you could simply run another method on the points found by LOESS. If it's a simple 2D graph then it shouldn't be that hard to find a good formula. One method for doing this is symbolic regression (see wiki).
Be aware that this is probably not optimal and it might be better to simply use another method than LOESS.
你想从黄土物体中恢复公式吗?您也许可以执行以下操作:
编辑: 抱歉...我认为我误解了您想要的内容。没有简单的方法可以用方程的形式表达黄土模型。
You want to recover the formula from a loess object? You might be able to do something like this:
Edit: Sorry...I think that I misinterpreted what you wanted. There is no simple way to express the loess model in the form of an equation.
Loess 没有给你一个方程 [1]。如果您只想获取 loess 函数返回的值,请使用
predict(loess.object, new.data)
[1] 来自维基百科:
Loess doesn't give you an equation [1]. If you just want to get the values returned by the loess function you use
predict(loess.object, new.data)
[1] From wikipedia: