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
>
>
______________________________________________
[email protected] 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.