Re: [R] R exponential regression

2012-11-15 Thread PIKAL Petr
oun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of muzammil786 > Sent: Wednesday, November 14, 2012 12:12 PM > To: r-help@r-project.org > Subject: Re: [R] R exponential regression > > I am having a similar problem on this data (given below). I have tried >

Re: [R] R exponential regression

2012-11-14 Thread muzammil786
I am having a similar problem on this data (given below). I have tried several starting values for a and b, but it is consistently giving me: fm <- nls(y~f(x,a,b), data.frame(x,y), start=c(a=1,b=1)) Error in numericDeriv(form[[3L]], names(ind), env) : Missing value or an infinity produced whe

Re: [R] R exponential regression

2010-01-10 Thread Peter Ehlers
chrisli1223 wrote: Hi all, I have a dataset which consists of 2 columns. I'd like to plot them on a x-y scatter plot and fit an exponential trendline. I'd like R to determine the equation for the trendline and display it on the graph. Here's one way: f <- function(x,a,b) {a * exp(b * x)} #

Re: [R] R exponential regression

2010-01-10 Thread chrisli1223
nd follow the rest > of the procedure described in 1). > > Hope this helps. > > Murray M Cooper, Ph.D. > Richland Statistics > 9800 N 24th St > Richland, MI, USA 49083 > Mail: richs...@earthlink.net > > - Original Message - > From: "chrisli1223&q

Re: [R] R exponential regression

2010-01-10 Thread Murray Cooper
.@earthlink.net - Original Message - From: "chrisli1223" To: Sent: Thursday, January 07, 2010 10:33 PM Subject: [R] R exponential regression Hi all, I have a dataset which consists of 2 columns. I'd like to plot them on a x-y scatter plot and fit an exponential trendlin

[R] R exponential regression

2010-01-07 Thread chrisli1223
Hi all, I have a dataset which consists of 2 columns. I'd like to plot them on a x-y scatter plot and fit an exponential trendline. I'd like R to determine the equation for the trendline and display it on the graph. Since I am new to R (and statistics), any advice on how to achieve this will be