Re: [R] (d,p,r,q) for all distributions, but no m?

2016-09-12 Thread Bert Gunter
No you may not. I suggest that you *first search before posting* -- e.g. on "R package moments of distributions" -- where you would find the package "moments" that apparently already does exactly what you suggest (there are some other packages as well). You could also first search the CRAN task

[R] (d,p,r,q) for all distributions, but no m?

2016-09-12 Thread ALBERTO VIEIRA FERREIRA MONTEIRO
Today I need to compute the means for some distributions... and there's no easy way to do it! I mean (no pun intended), there is (d,p,r,q) for all distributions (like: dgamma, pgamma, rgamma, qgamma; dchisq, pchisq, rchisq, dchisp; etc), but there is no "m"-functions, like a mgamma to get the