当我运行方差分析的回归模型,我发展,出现此错误:如何对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