[R] Summary Stats (not summary(x))

2008-07-09 Thread nmarti
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.

Re: [R] Summary Stats (not summary(x))

2008-07-09 Thread Gabor Grothendieck
There are describe functions in prettyR and Hmisc packages and doSummary in doBy. On Wed, Jul 9, 2008 at 11:15 AM, nmarti [EMAIL PROTECTED] 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

Re: [R] Summary Stats (not summary(x))

2008-07-09 Thread Jorge Ivan Velez
Dear nmarti, See ?basicStats in fBasics. HTH, Jorge On Wed, Jul 9, 2008 at 11:15 AM, nmarti [EMAIL PROTECTED] 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

Re: [R] Summary Stats (not summary(x))

2008-07-09 Thread Gabor Csardi
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:

Re: [R] Summary Stats (not summary(x))

2008-07-09 Thread HBaize
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

Re: [R] Summary Stats (not summary(x))

2008-07-09 Thread William Revelle
At 11:26 AM -0400 7/9/08, Gabor Grothendieck wrote: There are describe functions in prettyR and Hmisc packages and doSummary in doBy. As well as describe and describe.by in the psych package. On Wed, Jul 9, 2008 at 11:15 AM, nmarti [EMAIL PROTECTED] wrote: I'm looking for a function

Re: [R] Summary Stats (not summary(x))

2008-07-09 Thread nmarti
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

Re: [R] Summary Stats (not summary(x))

2008-07-09 Thread nmarti
Thanks Gabor. I was able to create a function that works really well. One more quick question if you don't mind. I want to report the number of observations also (i.e. n = 5420). What function would do this? I really can't find anything that would just simply count the number of x's. Thanks

Re: [R] Summary Stats (not summary(x))

2008-07-09 Thread Gabor Grothendieck
The two describe functions have it. Maybe the one in psych too? Also see valid.n in the prettyR package and of course there is length, nrows and dim. On Wed, Jul 9, 2008 at 8:53 PM, nmarti [EMAIL PROTECTED] wrote: Thanks Gabor. I was able to create a function that works really well. One more

Re: [R] Summary Stats (not summary(x))

2008-07-09 Thread nmarti
OK, never-mind. I found length(x). It's been a long day. Gabor Csardi wrote: 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),