Re: [R] How to solve systems of nonlinear equations in R?

From: Ravi Varadhan <RVaradhan_at_jhmi.edu>
Date: Mon, 21 Jul 2008 11:16:27 -0400

Also take a look at the package "BB" for solving nonlinear systems.

Ravi.

-----Original Message-----
From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf Of Berend Hasselman
Sent: Saturday, July 19, 2008 7:45 AM
To: r-help_at_r-project.org
Subject: Re: [R] How to solve systems of nonlinear equations in R?

François Aucoin wrote:
>
> Hey,
> I was wondering if there existed a R function similar to 'fsolve' or
> 'fzero' Matlab functions?
>
>

For a single function of one variable you can use uniroot. Use ?uniroot in R to find out more.
You can also try general purpose optimisation algorithms such as optim/nlm, but they don't always find a solution and they are not very efficient for systems of equations.

I am working on a package for solving (dense) non linear systems of equations using Broyden/Newton and global search methods. But it isn't ready yet and it will take time ...

Berend

--
View this message in context:
http://www.nabble.com/How-to-solve-systems-of-nonlinear-equations-in-R--tp18
539798p18543785.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 21 Jul 2008 - 15:20:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 21 Jul 2008 - 16:32:03 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive