【问题标题】:How to obtain R's scatterplot car formula and coefficients?如何获得R的散点图汽车公式和系数?
【发布时间】:2013-07-09 10:39:37
【问题描述】:

在使用R的汽车包的平滑和回归(线)模型时,有没有办法获得方程和系数?

scatterplot(prestige ~ income, data=Prestige)
scatterplot(prestige ~ income, data=Prestige, smoother=gamLine)  

(需要 mgcv 包的 gamLine 参数)

谢谢

【问题讨论】:

    标签: r model scatter-plot mgcv r-car


    【解决方案1】:

    在第一种情况下,您可以通过

    查看信息
    summary(lm(prestige ~ income, data = Prestige))
    

    在第二种情况下,可能会应用类似的东西,但我不知道那个包或平滑方法。它肯定不像线性拟合那么简单。看看?mgcv-FAQ

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-10
      • 1970-01-01
      • 2020-04-24
      • 1970-01-01
      • 2011-05-28
      • 2021-07-26
      • 2017-04-01
      • 1970-01-01
      相关资源
      最近更新 更多