Re: [R] solving system of equations involving non-linearities

2009-08-07 Thread Ravi Varadhan
elp-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Werner W. Sent: Friday, August 07, 2009 2:43 AM To: r-help@r-project.org Subject: Re: [R] solving system of equations involving non-linearities Many thanks, BBsolve works like a charm. First I thought I should use the squar

Re: [R] solving system of equations involving non-linearities

2009-08-06 Thread Werner W.
Many thanks, BBsolve works like a charm. First I thought I should use the squares of the equations because BBsolve would use some minimization objective function anyway but it actually only works if I don't use the squared equations. I'll check the documentation if I find something about the obj

Re: [R] solving system of equations involving non-linearities

2009-08-06 Thread Berend Hasselman
Ravi Varadhan wrote: > > You have two options: > > 1. The `BBsolve' function in the "BB" package to solve this system of 3 > equations. > 2. Try `nleqslv' function in the "nleqslv" package. > > These would work even if the residual is not zero. > I hope so but I have some doubts. >From th

Re: [R] solving system of equations involving non-linearities

2009-08-06 Thread Ravi Varadhan
st 6, 2009 7:56 am Subject: [R] solving system of equations involving non-linearities To: r-h...@stat.math.ethz.ch > Hi, > > I would appreciate if someone could help me on track with this problem. > > I want to compute some parameters from a system of equations given a > numb

[R] solving system of equations involving non-linearities

2009-08-06 Thread Werner Wernersen
Hi, I would appreciate if someone could help me on track with this problem. I want to compute some parameters from a system of equations given a number of sample observations. The system looks like this: sum_i( A+b_i>0 & A+b_i>C+d_i) = x sum_i( C+d_i>0 & C+d_i>A+b_i) = y sum_i( exp(E+f_i) * ( A