Re: [R] different regression coeffs with different starting point

2011-03-14 Thread Achim Zeileis
On Mon, 14 Mar 2011, Jen wrote: Hi Bill, Thanks for your response and I'm sorry -- that was a misleading example of what I was trying to show. This one should illustrate the point: require(AER) data_in = c(0,6,12,18,24,30,36,42,48,54,60,66,72,78) data_in2 = data_in^2 data_in3 = data_in^3 data_o

Re: [R] different regression coeffs with different starting point

2011-03-14 Thread Jen
Hi Bill, Thanks for your response and I'm sorry -- that was a misleading example of what I was trying to show. This one should illustrate the point: require(AER) data_in = c(0,6,12,18,24,30,36,42,48,54,60,66,72,78) data_in2 = data_in^2 data_in3 = data_in^3 data_out = c(139487.00,13.00,62500.00

Re: [R] different regression coeffs with different starting point

2011-03-14 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Jen > Sent: Monday, March 14, 2011 3:27 AM > To: r-help@r-project.org > Subject: [R] different regression coeffs with different starting point > > Hi

[R] different regression coeffs with different starting point

2011-03-14 Thread Jen
Hi all, I have a question about the optimisation methods used in nonlinear regression. I have some data that I would like to fit a tobit regression model to (see code below). It seems that the solution is very sensitive to the initial condition that I give it - is there any option to use a differen