Re: [R] Table of basic descriptive statistics like SPSS

From: Jim Lemon <jim_at_bitwrit.com.au>
Date: Wed, 19 Mar 2008 21:15:59 +1100


Just to forestall confusion amongst those who would like to use one of the functions called "describe"...

Hmisc package - describe
numeric
  name
  count of observations
  count of missing values
  count of unique values
  mean
  seven quantiles
  five lowest and highest values
discrete (factor or numeric with <= 10 unique values) -   as for numeric, but
  no mean, quantiles or low/high values and   including a frequency/percent display for each value.

psych package - describe
  item name
  item number
  number of valid cases
  mean
  standard deviation
  median
  mad: median absolute deviation (from the median)   minimum
  maximum

  skew	(optional)
  kurtosis	(optional)

  standard error

prettyR package - describe
numeric
  name
  mean
  median
  var
  sd
  valid.n
the above are the defaults - the user can specify the name(s) of any function(s) as an argument to the function to customize the display. factor
  name
  count for each value
  percent for each value
  modal value
  count of missing values
logical
  name
  count of FALSE
  count of TRUE
  percent of TRUE
  count of missing values

Have fun

Jim



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. Received on Wed 19 Mar 2008 - 10:29:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 19 Mar 2008 - 10:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive