Re: [R] Integrate inside function

2012-03-17 Thread Mauro Rossi
Dear David and Micheal, thanks for your suggestion. Vectorize does what I need. David you suggest me that I didn't built the function in a manner that would vectorize. Could you please explain me what's wrong? Thanks, Mauro > > On Mar 15, 2012, at 6:08 AM, Mauro Rossi wrote: &

[R] Integrate inside function

2012-03-15 Thread Mauro Rossi
hy doesn't this calculate cumdensity (p.mixedgamma) in case x is a vector? For instance try: pmixedgamma3(c(10,20),shape1=10,rate1=1,shape2=10,rate2=1,prev=0.5) As you can see cumdensity is calculated just for the first x value. Thanks in advance Best Mauro -- Mauro Rossi Istituto di Ricer

[R] Neyman Scott rainfall pulse model

2008-11-12 Thread Mauro Rossi
nalysis of extremes, Water Resour. Res., 38(8), 1131, doi:10.1029/2001WR000709). Does anyone have any R code or suggestions for it? Thank you in advance. -- Mauro Rossi Istituto di Ricerca per la Protezione Idrogeologica Consiglio Nazionale delle Ricerche Via della Madonna Alta, 126 06128 Perugia I