Re: [R] finding roots (Max Like Est)

2007-12-01 Thread Berend Hasselman
Why exactly the same question? You were told what to do. I am new to R. I did what the previous poster said. I found it. Write your function in terms of vector operations. Avoid loops if you can. Sample input for R follows - # par is the thing that has to be found # x

Re: [R] finding roots (Max Like Est)

2007-11-30 Thread Charles C. Berry
On Thu, 29 Nov 2007, stathelp wrote: > > I have this maximum liklihood estimate problem > > i need to find the roots of the following: Dear 'stathelp', Did you follow the Posting Guide? It would suggest that you issue something like help.search("roots") or help.search("root")

[R] finding roots (Max Like Est)

2007-11-30 Thread stathelp
I have this maximum liklihood estimate problem i need to find the roots of the following: [sum (from i=1 to n) ] ((2(x[i]-parameter)/(1+(x[i]-parameter)^2))=0 given to me is the x vector which has length 100 how would I find the roots using R? I have 2 thoughts.. 1 is using a grid search