[R] Solving Systems of Non-linear equations

From: Scott Story <sstory_at_montana.edu>
Date: Thu 01 Dec 2005 - 02:14:23 EST

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.

Scott Story
Graduate Student
MSU Ecology Department
319 Lewis Hall
Bozeman, Mt 59717

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Dec 01 03:00:43 2005

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