scatter3d R 脚本的输出 - 如何读取方程 [英] Output from scatter3d R script - how to read the equation

查看:63
本文介绍了scatter3d R 脚本的输出 - 如何读取方程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 scatter3d 在我的 R 脚本中找到合适的.我这样做了,这是输出:

I am using scatter3d to find a fit in my R script. I did so, and here is the output:

Call:
lm(formula = y ~ (x + z)^2 + I(x^2) + I(z^2))

Residuals:
     Min       1Q   Median       3Q      Max 
-0.78454 -0.02302 -0.00563  0.01398  0.47846 

Coefficients:
             Estimate Std. Error t value Pr(>|t|)    
(Intercept) -0.051975   0.003945 -13.173  < 2e-16 ***
x            0.224564   0.023059   9.739  < 2e-16 ***
z            0.356314   0.021782  16.358  < 2e-16 ***
I(x^2)      -0.340781   0.044835  -7.601 3.46e-14 ***
I(z^2)       0.610344   0.028421  21.475  < 2e-16 ***
x:z         -0.454826   0.065632  -6.930 4.71e-12 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 

Residual standard error: 0.05468 on 5293 degrees of freedom
Multiple R-squared: 0.6129, Adjusted R-squared: 0.6125 
F-statistic:  1676 on 5 and 5293 DF,  p-value: < 2.2e-16

基于此,最佳拟合线的方程是什么?我真的不知道如何阅读这个?有人可以解释一下吗?谢谢!

Based on this, what is the equation of the best fit line? I'm not really sure how to read this? Can someone explain? thanks!

推荐答案

它不是平面而是抛物面(并且使用 'y' 作为第三维,因为您已经使用了 'z'):

It's not a plane but rather a paraboloid surface (and using 'y' as the third dimension since you used 'z' already):

y =  -0.051975 + x * 0.224564  + z * 0.356314  +
          -x^2 * -0.340781 + z^2 * 0.610344 - x * z * 0.454826 

这篇关于scatter3d R 脚本的输出 - 如何读取方程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆