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
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
2 matches
Mail list logo