Re: [R] How to solve a non-linear system of equations using R

2008-06-04 Thread Ravi Varadhan
Jorge, You can use the package "BB" to try and solve this problem. I have re-written your functions a little bit. # -- # Constants # -- l=1 m=0.4795 s=0.4795 # -- # Functions to estimate f_i-k_i #

Re: [R] How to solve a non-linear system of equations using R

2008-06-03 Thread Moshe Olshansky
Since k_i(l,m,s) are known constants, you actually have a system of four non-linear equations with 4 unknowns. One possibility is to use optim (check ?optim). Another one is to use the very recently released package - look at https://stat.ethz.ch/pipermail/r-help/attachments/20080423/da0b7f6c/

Re: [R] How to solve a non-linear system of equations using R

2008-06-03 Thread ctu
Hi Jorge, Have you tried to use "systemfit" package. In this package, this is a function call " nlsystemfit ". This might help. Chunhao Quoting Jorge Ivan Velez <[EMAIL PROTECTED]>: Dear R-list members, I've had a hard time trying to solve a non-linear system (nls) of equations which st