Dear list, Did anybody have something like multiroot(), similar to uniroot() only for several varibles/function? I know the difficulty several varibles bring. But for nice functions, it can be useful. We are thinking of writing one....I thought to ask first. Mai Zhou -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 19 Mar 2002, Mai Zhou wrote:> Dear list, Did anybody have something like multiroot(), > similar to uniroot() only for several varibles/function? > > I know the difficulty several varibles bring. But for > nice functions, it can be useful. > > We are thinking of writing one....I thought to ask first.I use optim() on the squared difference from the target value (here zero). -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Mai Zhou wrote:> > Dear list, Did anybody have something like multiroot(), > similar to uniroot() only for several varibles/function? > > I know the difficulty several varibles bring. But for > nice functions, it can be useful. > > We are thinking of writing one....I thought to ask first.I guess you are looking for optim(). Uwe Ligges -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Mai Zhou wrote:> > Dear list, Did anybody have something like multiroot(), > similar to uniroot() only for several varibles/function? > > I know the difficulty several varibles bring. But for > nice functions, it can be useful. > > We are thinking of writing one....I thought to ask first. > > Mai ZhouIf you can think of your function as a matrix polynomial then you can find roots using polyroot() on the determinant of the polynomial matrix. There are utilities in dse1 in the dse bundle on CRAN to do this. They are oriented toward time series models but can pretty easily be trick to work on a polynomial matrix. (I've sometimes considered organizing them into a separate, more general package, but never had the time.) Please note that this is not a very good way to do the calculation if there are many roots, because of numerical conditioning problems in the polynomial determinant representation. The default method in dse uses a different calculation which is much more accurate for large problems. Paul Gilbert -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Seemingly Similar Threads
- How to get solution of following polynomial?
- How to find the zero (only the real solution) with the package polynom ?
- what is the purpose of an error message in uniroot?
- variable selectin---reduce the numbers of initial variable
- R and Excel disagreement - Goal Seek versus uniroot