[R] A problem with anova()

From: Guru S <guru.rcom_at_rediffmail.com>
Date: Fri, 09 May 2008 07:16:03 +0000


  
Hi,

I fitted tree growth data with Chapman-Richards growth function using nls.

summary(fit.nls)

Formula: HEIGHT ~ A * (1 - exp(-B * AGE))^C

Parameters:

  Estimate Std. Error t value Pr(>|t|)    
A 29.007627  0.270485  107.24  <2e-16 ***
B  0.030813  0.001095  28.13  <2e-16 ***
C  1.849405  0.068659  26.94  <2e-16 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 

Residual standard error: 1.879 on 713 degrees of freedom

Algorithm "port", convergence message: relative convergence (4) 

When I try to run the anova() function I get this:

anova(fit.nls)
Error in anova.nls(fit.nls) : anova is only defined for sequences of "nls" objects

Could you tell me what the problem is?

Thanks & Regards,
Guru S 


	[[alternative HTML version deleted]]


______________________________________________ R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Received on Fri 09 May 2008 - 07:31:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 09 May 2008 - 08:30:36 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive