David Kaplan
2007-May-08 15:09 UTC
[R] Looking for a comprehensive descriptive statistics package
Hi all, I'm looking for a package that will give me comprehensive set of descriptive statistics, including skew and kurtosis. Also, is there a similar package that will provide multivariate descriptive statistics as well? Thanks in advance, David -- ==========================================================================David Kaplan, Ph.D. Professor Department of Educational Psychology University of Wisconsin - Madison Educational Sciences, Room, 1061 1025 W. Johnson Street Madison, WI 53706 email: dkaplan at education.wisc.edu homepage: http://www.education.wisc.edu/edpsych/facstaff/kaplan/kaplan.htm Phone: 608-262-0836
Roland Rau
2007-May-08 18:31 UTC
[R] Looking for a comprehensive descriptive statistics package
Hi, summary(yourdata) is often a very good starting point for descriptive data statistics. Or you can write your own little function which returns what you actually like to see (the code below was written very quickly. No care is taken for the presence of missing values or anything else). exampledata <- rnorm(10000) summary(exampledata) desc <- function(mydata) { require(e1071) quantls <- quantile(x=mydata, probs=seq(from=0, to=1, by=0.25)) themean <- mean(mydata) thesd <- sd(mydata) kurt <- kurtosis(mydata) skew <- skewness(mydata) retlist <- list(Quantiles=quantls, Mean=themean, StandDev=thesd, Skewness=skew, Kurtosis=kurt) return(retlist) } descstats <- desc(exampledata) descstats I hope this helps, Roland David Kaplan wrote:> Hi all, > > I'm looking for a package that will give me comprehensive set of > descriptive statistics, including skew and kurtosis. Also, is there a > similar package that will provide multivariate descriptive statistics as > well? Thanks in advance, > > David > >
Seemingly Similar Threads
- what do i do to fix missing packages...see error
- Generating series of distributions with the same skewness and different kurtosis or with same kurtosis and different skewness?
- skewness and kurtosis in e1071 correct?
- Skewness and Kurtosis
- slow computation of functions over large datasets