Questions tagged «polynomial-math»

4
将多项式模型拟合到R中的数据
我已经阅读了该问题的答案,它们非常有帮助,但是我特别需要R中的帮助。 我在R中有一个示例数据集,如下所示: x <- c(32,64,96,118,126,144,152.5,158) y <- c(99.5,104.8,108.5,100,86,64,35.3,15) 我想对这些数据拟合模型,以便y = f(x)。我希望它是一个三阶多项式模型。 如何在R中做到这一点? 另外,R可以帮助我找到最佳的拟合模型吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.