I'm looking for a function that lists a few summary stats for a column (or row) of data. I'm aware of summary(x), but that does not give me what I'm looking for. I'm actually looking for something that is very similar to the descriptive statistics tool in excel; i.e. Mean, Std. Error, Std. Deviation, Kurtosis. I'm positive that I came across a function that did this (possibly in Rmetrics), but now I can't find it. I lost it in the endless mass of R functions. Any help would be appreciated. -- View this message in context: http://www.nabble.com/Summary-Stats-%28not-summary%28x%29%29-tp18363275p18363275.html Sent from the R help mailing list archive at Nabble.com.
Dear nmarti, See ?basicStats in fBasics. HTH, Jorge On Wed, Jul 9, 2008 at 11:15 AM, nmarti <nate318i@yahoo.com> wrote:> > I'm looking for a function that lists a few summary stats for a column (or > row) of data. I'm aware of summary(x), but that does not give me what I'm > looking for. > I'm actually looking for something that is very similar to the descriptive > statistics tool in excel; i.e. Mean, Std. Error, Std. Deviation, Kurtosis. > I'm positive that I came across a function that did this (possibly in > Rmetrics), but now I can't find it. I lost it in the endless mass of R > functions. > > Any help would be appreciated. > -- > View this message in context: > http://www.nabble.com/Summary-Stats-%28not-summary%28x%29%29-tp18363275p18363275.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. >[[alternative HTML version deleted]]
There are describe functions in prettyR and Hmisc packages and doSummary in doBy. On Wed, Jul 9, 2008 at 11:15 AM, nmarti <nate318i at yahoo.com> wrote:> > I'm looking for a function that lists a few summary stats for a column (or > row) of data. I'm aware of summary(x), but that does not give me what I'm > looking for. > I'm actually looking for something that is very similar to the descriptive > statistics tool in excel; i.e. Mean, Std. Error, Std. Deviation, Kurtosis. > I'm positive that I came across a function that did this (possibly in > Rmetrics), but now I can't find it. I lost it in the endless mass of R > functions. > > Any help would be appreciated. > -- > View this message in context: http://www.nabble.com/Summary-Stats-%28not-summary%28x%29%29-tp18363275p18363275.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at 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. >
Why don't you write it for yourself, it takes less time than writing an email: mysummary <- function(x) { require(plotrix) require(e1071) c(Mean=mean(x), Std.Error=std.error(x), Std.Deviation=sd(x), Kurtosis=kurtosis(x)) } Gabor On Wed, Jul 09, 2008 at 08:15:00AM -0700, nmarti wrote:> > I'm looking for a function that lists a few summary stats for a column (or > row) of data. I'm aware of summary(x), but that does not give me what I'm > looking for. > I'm actually looking for something that is very similar to the descriptive > statistics tool in excel; i.e. Mean, Std. Error, Std. Deviation, Kurtosis. > I'm positive that I came across a function that did this (possibly in > Rmetrics), but now I can't find it. I lost it in the endless mass of R > functions. > > Any help would be appreciated. > -- > View this message in context: http://www.nabble.com/Summary-Stats-%28not-summary%28x%29%29-tp18363275p18363275.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at 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.-- Csardi Gabor <csardi at rmki.kfki.hu> UNIL DGM
I think the function describe() in the package "psych" will give you want you want. There are other similar functions in the library "Simple" as well. Harold nmarti wrote:> > I'm looking for a function that lists a few summary stats for a column (or > row) of data. I'm aware of summary(x), but that does not give me what I'm > looking for. > I'm actually looking for something that is very similar to the descriptive > statistics tool in excel; i.e. Mean, Std. Error, Std. Deviation, Kurtosis. > I'm positive that I came across a function that did this (possibly in > Rmetrics), but now I can't find it. I lost it in the endless mass of R > functions. > > Any help would be appreciated. >-- View this message in context: http://www.nabble.com/Summary-Stats-%28not-summary%28x%29%29-tp18363275p18363387.html Sent from the R help mailing list archive at Nabble.com.
Thanks for your replies. basicStats(x) in "fBasics" is exactly what I was looking for.> >nmarti wrote:> > I'm looking for a function that lists a few summary stats for a column (or > row) of data. I'm aware of summary(x), but that does not give me what I'm > looking for. > I'm actually looking for something that is very similar to the descriptive > statistics tool in excel; i.e. Mean, Std. Error, Std. Deviation, Kurtosis. > I'm positive that I came across a function that did this (possibly in > Rmetrics), but now I can't find it. I lost it in the endless mass of R > functions. > > Any help would be appreciated. >-- View this message in context: http://www.nabble.com/Summary-Stats-%28not-summary%28x%29%29-tp18363275p18363415.html Sent from the R help mailing list archive at Nabble.com.