[R] Solving Systems of Non-linear equations

NOEL Yvonnick yvonnick.noel at uhb.fr
Thu Dec 1 14:42:44 CET 2005


On 11/30/05, Scott Story <sstory at montana.edu> wrote:

>> I am trying to write a function that will solve a simple system of
>> nonlinear equations for the parameters that describe the beta
>> distribution (a,b) given the mean and variance.
>>
>>
>> mean = a/(a+b)
>> variance = (a*b)/(((a+b)2) * (a+b+1))
>>
>> Any help as to where to start would be welcome.
>  
>
The simplest way to go is probably to use the fitdistr function in MASS 
package.

YNOEL


More information about the R-help mailing list