Re: [R] newbie question: fitting power law

2003-08-14 Thread Douglas Bates
Thomas Hoffmann [EMAIL PROTECTED] writes: Dear R-helpers, dear Andrew Andrew C. Ward schrieb: Dear Thomas, I wonder if you have any NAs in xy$x or xy$y. The Dataframe looks like the following: xy x y 1 3.0 121.50951 2 2.0 30.61258 3 4.0 323.14837 4 8.2

[R] newbie question: fitting power law

2003-08-14 Thread Thomas Hoffmann
Dear R-Helpers, I try to fit my x and y vector-data with a power law using a the following command: test - nls(y ~ A*x^B, xy, start=list(A=0.5,B=0.8)) and I get the error message: Error in numericDeriv(form[[3]], names(ind), env) : Missing value or an Infinity produced when evaluating

Re: [R] newbie question: fitting power law

2003-08-08 Thread Thomas Hoffmann
Dear R-helpers, dear Andrew Andrew C. Ward schrieb: Dear Thomas, I wonder if you have any NAs in xy$x or xy$y. The Dataframe looks like the following: xy x y 1 3.0 121.50951 2 2.0 30.61258 3 4.0 323.14837 4 8.2 3709.92471 For testing reasons I calculated y by: y - 2.9 x^3.4