Re: [R] Solving Systems of Non-linear equations

From: NOEL Yvonnick <yvonnick.noel_at_uhb.fr>
Date: Fri 02 Dec 2005 - 00:42:44 EST

On 11/30/05, Scott Story <sstory@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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Dec 02 00:51:16 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:25 EST