當我運行方差分析的迴歸模型,我發展,出現此錯誤:如何對R中的迴歸模型進行方差分析?
Error in anova.nls(model3) : nova is only defined for sequences of "nls" objects
這是什麼錯誤的含義是什麼?
應該提到的是,當我運行模型的摘要時,我只看到模型的參數估計值,沒有其他統計參數。這是否意味着該模型仍然需要修改,這不是最終的模型?請看看我的模型的指令,並總結和方差:
model3 = nls(Height ~ 1.30 + a*(I(1- exp(-b*Diameter))^c), data = dat1, start = list(a=48,b=0.012,c=0.491), algorithm="port")
summary(model3)
anova(model3)
這裏有結果:
model3 = nls(Height ~ 1.30 + a*(I(1- exp(-b*Diameter))^c), data = dat1, start = list(a=48,b=0.012,c=0.491), algorithm="port")
summary(model3)
Formula: Height ~ 1.3 + a * (I(1 - exp(-b * Diameter))^c)
Parameters:
Estimate Std. Error t value Pr(>|t|)
a 43.121923 1.653027 26.087 < 2e-16 ***
b 0.022037 0.003811 5.783 1.38e-08 ***
c 0.914263 0.116202 7.868 2.75e-14 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 5.369 on 446 degrees of freedom
Algorithm "port", convergence message: relative convergence (4)
anova(model3)
Error in anova.nls(model3) :
anova is only defined for sequences of "nls" objects
我在R.初學者有沒有人誰幫助我嗎? 謝謝
我們需要一些額外的數據和一個最小的工作示例。 – TARehman