Re: [R] Optim Problem

2012-08-27 Thread Berend Hasselman
On 28-08-2012, at 03:12, Christopher Kelvin wrote: > Hello, > I want to estimate the exponential parameter by using optim with the > following input, where t contains 40% of the data and q contains 60% of the > data within an interval. In implementing the code command for optim i want it > to

[R] Optim Problem

2012-08-27 Thread Christopher Kelvin
Hello, I want to estimate the exponential parameter by using optim with the following input, where t contains 40% of the data and q contains 60% of the data within an interval. In implementing the code command for optim i want it to contain both the t and q data so i can obtain the correct estim

Re: [R] Optim Problem??

2009-10-03 Thread Duncan Murdoch
On 03/10/2009 5:26 PM, Jim Silverton wrote: I have having the following error message when trying to optimize a function using optim: optim(c(10,100),fn,method="BFGS") Error in optim(c(10, 100), fn, method = "BFGS") : cannot coerce type 'S4' to vector of type 'double' Can someone tell me

Re: [R] Optim Problem??

2009-10-03 Thread Jim Silverton
I have having the following error message when trying to optimize a function using optim: > optim(c(10,100),fn,method="BFGS") Error in optim(c(10, 100), fn, method = "BFGS") : cannot coerce type 'S4' to vector of type 'double' > Can someone tell me what this means? Jim [[alternative

Re: [R] optim() problem

2009-01-17 Thread nashjc
> I am trying to fit a exponential power distribution > > y = b/(2*pi*a^2*gamma(2/b))*exp(-(x/a)^b) > > to a bunch of data for x and y I have in a table. >> data >x y > 1 2527 > 2 7559 > 3125 219 > ... > 25912925 1 > 260