Re: [R] unused argument error

2010-11-26 Thread jim holtman
?nlm It does not seem to have a parameter 'data', so that is the cause of your error message. On Fri, Nov 26, 2010 at 4:36 PM, Mike Gibson wrote: > > > I want to change my parameter g to maximize the sum of my model.  I keep > getting an unused argument error and I don't know why.  Here are the

[R] unused argument error

2010-11-26 Thread Mike Gibson
I want to change my parameter g to maximize the sum of my model. I keep getting an unused argument error and I don't know why. Here are the details of my problem. g<-0.2 #initial value for g Qt<-exp(-g*tagdat$t) #model building PTT<-Qt*Qt #model building PT<