[R] solver in R

Roslina Zakaria zroslina at yahoo.com
Mon Mar 31 08:29:28 CEST 2008


Dear R-users,
Is there any function in R that works similarly like solver in Excel.  I have a set of daily rainfall data and I would like to estimate alpha and beta for the gamma function.

Here is my daily rainfall data:
[1]  0.2  1.2  0.0  0.0  0.0  0.0  0.0  0.6  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  4.8  1.6  0.0  1.8  1.8  0.0  2.6
 [24] 33.0 19.0  0.0  0.0  0.6  0.0  0.0  6.8  0.2  0.0  0.0  0.0  0.0  0.2  0.0  0.0  0.0  0.0  0.0  0.0  1.6  5.4  0.0
 [47]  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.2  0.0  0.0  6.0  6.6  0.0  0.0  0.0  0.0  0.2  0.0  0.0  0.0  0.0
 [70]  0.0  0.0  0.0  0.0  0.0  0.0  0.0 12.8  0.0  0.0  0.0  0.0  0.0  0.0  0.2  0.0  3.8  2.2  1.2 12.2  3.0  0.0  0.0
 [93]  0.0  0.0  5.0  3.6  0.0  0.0  0.0  1.8  1.8  1.2  1.2  1.6  3.6  0.2  0.8  0.0  0.0  0.0  0.0  0.0  1.4 16.6  0.0
[116]  1.6  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.8  5.4
[139]  1.6  5.8  0.4 34.2  0.0  0.4  0.4  1.4  1.8  0.0  0.0  0.2  0.0  2.4 24.2  0.4  0.0  0.0  0.0  1.6  0.0  0.0  0.0
[162]  0.0  0.2  0.0  0.0  0.0  4.4  0.0  4.4 21.2  3.0  0.4  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0
[185]  0.0  0.8  0.8  3.6  0.0  1.2  0.0  0.0  0.0  0.0  0.0  0.0 13.8  1.6  6.6  5.0  0.0  1.2  0.0  1.0  1.2  2.4  6.0
[208]  2.8  7.0  0.2  0.6  0.0  0.0  0.0  0.0  0.0  3.2  0.2  2.4  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  2.0
[231]  0.0  0.0  0.0  0.0  0.0  0.0  0.0  1.2  6.6  2.4  1.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  1.6  0.0  0.0  0.0
[254]  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.4  2.6  0.0  0.6  4.8  0.0  0.2  3.8 17.0  0.2  0.0  0.0  0.0
[277] 43.6  2.6  0.0  0.0  0.0  0.4  8.2 14.4  0.2  0.0  0.0  0.0  1.8  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  0.0  1.2
[300]  0.0

Thank you in advance for your help.


      ____________________________________________________________________________________
Looking for last minute shopping deals?



More information about the R-help mailing list