On Tue, Sep 23, 2008 at 9:59 AM, zhijie zhang <[EMAIL PROTECTED]> wrote: > Dear R users, > I hope to explain the concepts of skewness and kurtosis by generating > series of distributions with same skewness and different kurtosis or with > same kurtosis and different skewness, but it seems that i cannot find the > right functions. > I have searched the mailing list, but no answers were found. > Is it possible to do that in R? Which function could be used? > Thanks a lot.
You might want to have a look at Pearson's type IV distribution. This document, http://www-cdf.fnal.gov/publications/cdf6820_pearson4.pdf, provides a pretty good introduction, and I think you can use the method of moments in reverse to fix the first four moments (~mean, sd, skewness, kurtosis) and then derive the appropriate parameters of the Pearson's distribution. Hadley -- http://had.co.nz/ ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.